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 does path variable work?

551


What is path in shell script?

643


what is info area how many types?

2299


How will you emulate wc –l using awk?

919


What is a shell made of?

565






What happens when you type ls?

575


How do I run a powershell script?

584


Given a file find the count of lines containing the word "abc".

967


Rewrite the command to print the sentence and convert the variable to plural: echo “i like $variable”.

578


How can you find out how long the system has been running?

530


How do I open a jshell in cmd?

606


Using set -A write a script to print the output of the ls command in 5 columns with two spaces between each column. Pretend that ls does not have multicolumn output.

2038


write a shell script to generate a alert ? like when ur birthday came then generate a alert ur birthday is today like that ?

3598


What can you do with powershell?

617


Hello all, This is my assignment on shell scripting, can anyone help me regarding this ? Create a shell script which connects to the database In second shell script include the first script for the DB connection Create a table (PRADEEP_DATA) with 2 columns (name, value) In Third shell script include the first script for the DB connection And insert/delete the values from the Table, by accepting input from the user This functionality should be a menu driven Program: 1) Insert to the database a. Name b. value 2)Delete from the database a.Name b.value Exception handling needs to be taken care.

1859