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 the difference between bash and shell?

641


Explain about shebang?

620


What happens when you type ls?

558


How do I run a script on mac?

568


How do you find out What is your shell?

590






What is option in shell script?

556


How would you compare the strings in a shell script?

543


What is computer cli?

497


Which is better perl or shell scripting?

559


Differentiate between ‘ and ” quotes.

611


How will you emulate wc –l using awk?

905


What can you do with powershell?

605


Where are cowrie shells found?

574


What can scripts do?

662


What is mac default shell?

614