How will you schedule a job that will run every month last day?(some months have 30 days,some 31 days,28,29 days)



How will you schedule a job that will run every month last day?(some months have 30 days,some 31 day..

Answer / kirtiranjan sahoo

55 23 28-31 * * [[ "$(date --date=tomorrow +\%d)" == "01" ]] && myjob.sh

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Shell Script Interview Questions

I want to read all input to the command from file1 direct all output to file2 and error to file 3, how can I achieve this?

1 Answers  


What is batch file programming?

0 Answers  


Is shell and terminal the same?

0 Answers  


What is basename in shell script?

0 Answers  


What is sudo command?

0 Answers  






what is info area how many types?

0 Answers  


How do I run a .sh file on mac?

0 Answers  


State the advantages of shell scripting?

0 Answers  


Explain about "s" permission bit in a file?

0 Answers  


What are the different methods available to run a shell script?

2 Answers  


How do you debug a script?

0 Answers  


write a shell script to emulate the Id command of PRIMOS which lists files and directories. It list files first with a header FILES and then directories with a header DIRECTORIES. This command has several options. The main ones are. -file select files only -dir select directories only -reverse sort in reverse order -no_header put no header on the output -brief output the header only -size display the size of each file -help display Id´s syntax and options.

0 Answers  


Categories