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 / kirtiranjan sahoo
55 23 28-31 * * [[ "$(date --date=tomorrow +\%d)" == "01" ]] && myjob.sh
Is This Answer Correct ? | 1 Yes | 0 No |
What is path variable bash?
Create a bash shell script that reads in a number from the user. If the number is 1, print out the date. If the number is 2, list the files in the current directory. If the number is 3, print out who is currently logged onto the system. If the number is anything else, print out an error message and exit. Name this script "various.sh"
How can we find the process name from its process id?
What is a shell script? Can you name some of its advantages?
What happens on a system call?
What is use of "cut" command?
Write a shell program to test whether a given number is even or odd?
How will you copy a file from one machine to other?
When should shell programming/scripting not be used?
What is shell environment?
How many fields are present in a crontab file and what does each field specify?
How to include comments in your shell scripts?