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

What is path variable bash?

573


wats the deinitions for shell utility and filter?

1849


What are the different types of shell scripting?

540


How to set an array in linux?

598


How do you find out What is your shell?

592






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

501


Suppose you execute a command using exec, what will be the status of your current process in the shell?

589


How will you connect to a database server from linux?

557


Explain about login shell?

636


How do I run a shell script in powershell?

556


What are scripts in psychology?

601


What are the types of script?

618


What is basename in shell script?

591


How do I open the shell prompt?

576


Please give me example of " at command , contrab command " how to use

2331