How will you schedule a job that will run every month last day?(some months have 30 days,some 31 days,28,29 days)



How will you schedule a job that will run every month last day?(some months have 30 days,some 31 day..

Answer / kirtiranjan sahoo

55 23 28-31 * * [[ "$(date --date=tomorrow +\%d)" == "01" ]] && myjob.sh

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Shell Script Interview Questions

What are the additional egrep symbols?

2 Answers  


What is the difference between running a script as ./scriptname.sh and sh scriptname.sh

1 Answers  


What is shell scripting used for?

0 Answers  


What is the basic difference you find between a shell script and perl?

3 Answers   Yahoo,


I want to upload a file to remote server through ftp daily.Can anyone suggest how to make a shell script for that.I hv credentials for that ftp

1 Answers  






How to sort a result of Ls -l command based on columns. Ex. i want to sort 5th column from output of ls -l command.

6 Answers   TCS,


What is sudo command?

0 Answers  


I want to monitor a continuously updating log file, what command can be used to most efficiently achieve this?

0 Answers  


Hi, i want to zip the files that generates automatically every few minutes (files generated are in .arc extension)....any body write a script for this... thanks in advance

5 Answers   HP,


What does $# stand for?

3 Answers   IBM,


How will you copy a file from one machine to other?

0 Answers  


What are the different communication commands available in the shell?

0 Answers  


Categories