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 I send a mail with a compressed file as an attachment?
What are filters explain sort with all the options available?
What can you do with powershell?
What are the default permissions of a file when it is created?
how to print the 2-d, 3-d arrays in unix shell script programs please answer thi questio to my mail venusaikumar@gmail.com
Is cmd a shell?
What command needs to be used to take the backup?
What will happen to my current process when I execute a command using exec?
I want to create a directory such that anyone in the group can create a file and access any person's file in it but none should be able to delete a file other than the one created by himself.
What is the lifespan of a variable inside a shell script?
What does .sh file contain?
What is the default shell of solaris?
How do I open the shell prompt?
How do I run a bin bash script?
In my bash shell I want my prompt to be of format '$"present working directory":"hostname"> and load a file containing a list of user-defined functions as soon as I log in, how will you automate this?