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
What does it mean by #!/Bin/sh or #!/Bin/bash at the beginning of every script?
What are the types of script?
Why is a script important?
What is a shell script? Can you name some of its advantages?
Write a script to print the first 10 elements of fibonacci series.
How do I set bash as default shell mac?
What is the use of .sh file?
Is shell scripting a language?
What is bourne shell scripting?
How to debug the problems encountered in the shell script/program?
What is the first line in a shell script?
What is the conditional statement in shell scripting?
What are the zombie processes?
What are the different commands available to check the disk usage?
How can the contents of a file inside jar be read without extracting in a shell script?