How will you schedule a job that will run every month last day?(some months have 30 days,some 31 days,28,29 days)
Answer Posted / kirtiranjan sahoo
55 23 28-31 * * [[ "$(date --date=tomorrow +\%d)" == "01" ]] && myjob.sh
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How can you find out how long the system has been running?
What is shell geeksforgeeks?
What are the different commands available to check the disk usage?
What is a batch file used for?
Can shell script run on windows?
What does it mean to debug a script?
How does path variable work?
What is scripting autism?
What is a program shell?
How do I run a script from command prompt?
How would you compare the strings in a shell script?
What are the zombie processes?
What is @echo off?
Using set -A write a script to print the output of the ls command in 5 columns with two spaces between each column. Pretend that ls does not have multicolumn output.
Determine the output of the following command: [ -z “” ] && echo 0 || echo 1