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 is the difference between break and continue commands?
i have 2 tables 4 colums table 1 respective values a1 6, a2 8,a3 9,a4 14 & table 2 respective values a1 6, a2 8, a3 9, a4 12. if compare 2 tables 3 colums values same then 4th column values 1)Qes diff >5 then (5 * diff value ) 2)Qes diff <5 the 5 3)Qes diff 5 then 5 print respective values..
Why are there shells on the beach?
Explain how you Automate your application using Shell scripting.
What is an sh file?
How to set an array in linux?
What does it mean to debug a script?
How to get the first line from a file using just the terminal?
How to write a function?
How to find all the files modified in less than 3 days and save the record in a text file?
Is shell scripting difficult?
Explain about the slow execution speed of shells?
How can you find out how long the system has been running?
How to print pid of the current shell?
What does egrep mean?