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


Please Help Members By Posting Answers For Below Questions

How can I send a mail with a compressed file as an attachment?

640


What are filters explain sort with all the options available?

1033


What can you do with powershell?

698


What are the default permissions of a file when it is created?

577


how to print the 2-d, 3-d arrays in unix shell script programs please answer thi questio to my mail venusaikumar@gmail.com

2207






Is cmd a shell?

679


What command needs to be used to take the backup?

621


What will happen to my current process when I execute a command using exec?

616


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.

672


What is the lifespan of a variable inside a shell script?

1225


What does .sh file contain?

635


What is the default shell of solaris?

656


How do I open the shell prompt?

681


How do I run a bin bash script?

665


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?

718