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 is path variable bash?

0 Answers  


Create a bash shell script that reads in a number from the user. If the number is 1, print out the date. If the number is 2, list the files in the current directory. If the number is 3, print out who is currently logged onto the system. If the number is anything else, print out an error message and exit. Name this script "various.sh"

4 Answers  


How can we find the process name from its process id?

0 Answers  


What is a shell script? Can you name some of its advantages?

0 Answers  


What happens on a system call?

0 Answers  






What is use of "cut" command?

3 Answers  


Write a shell program to test whether a given number is even or odd?

8 Answers  


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

0 Answers  


When should shell programming/scripting not be used?

0 Answers  


What is shell environment?

0 Answers  


How many fields are present in a crontab file and what does each field specify?

0 Answers  


How to include comments in your shell scripts?

3 Answers  


Categories