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

How do I debug a shell script?

0 Answers  


give me some website where i can get unix and testing meterials

1 Answers  


What are the zombie processes?

0 Answers  


What is shell scripting used for?

0 Answers  


Create a bash shell script to sort and then uniq the file from the command line & store it to a new file and output the results to the screen. Name this script "sortAndUniq.sh"

5 Answers  






What is the way to do multilevel if-else's in shell scripting?

0 Answers  


What does $$ mean in shell script?

0 Answers  


Script S1 (which copies .dat files from one directory1 to another directory2) run continuously. Write Script S2 which kills S1 first, compresses all .dat files in directory1 and directory2 successfully, re-run Script S1 and stops self i.e. S2.

2 Answers   IBM, TCS,


What are environment variables?

2 Answers  


Is shell scripting a language?

0 Answers  


What is the use of echo in shell script?

0 Answers  


When you login to a c shell, which script would be run first?

2 Answers  


Categories