Hi all,
I would like to schedule a crontab script, which should run From 8pm Thursday to 2am Friday and it should run every 10 minutes. I have put a script like below, is it the correct one.
Code:
10 01,02,20,21,22,23,00 * * 4-5 /u01/app/test.ksh
Any other options available to schedule the same interval.
How do I invoke a crontab command so that I can schedule to run a script with a 20 minute delay based on some condition?
Edit: What if I wanted a command that schedules a script to be executed only as many times as the condition evaluated to true in the system? What are my options?
I was learning and experimenting with crontab today.
The default editor was just too difficult for me to figure out which caused me to remove my crontab by running crontab -r.
Now, when I run crontab -e and input my new cron task, nothing happens.
I suspect it's the crontab -r command I executed earlier.
Can anyone help, please?
I would like to schedule my tasks every x months on day 1 starting for example, March. I am unsure if this is the syntax I'm looking for (for repeating the job every 4 months):
0 0 1 3/4 * /path/to/file
The man page for crontab does not explain in detail how the steps (/) work.
hi gurus.
I have a little script that runs java from a certain directory. This script runs fine when run manually but when I try to schedule it, it fails to find the script.
I have a strange thing (i think),
I added a line in my crontab on an QNAP NAS with crontab -e i saved (:wq!)
This line would have had a script to run for every 5 minutes so i dit 5 * * * * and the script name.
And restarted the crontab.
This script fills a database.
Last night i quit trying, went to bed and kept de NAS running.
And wen ik woke up this morning i looked at the database and the scr
Hello everyone,How do I schedule a custom .sh script that requires sudo?The situation I want is: The script runs according to schedule and appears in a terminal. I have to type in a password before this script can run. Then the script runs.Note:- The program I have for scheduling is cronie (default cron.)Here is the situation:I type: crontab -eIn the text editor, I add in: 0 17 * * * s
For example I want to schedule task using crontab:
*/2 * * * * /root/scripts/backup.sh
But nothing happens, backup.sh is not executed. Who can help me?
Quote:
# Output of the crontab jobs (including errors) is sent through
# email to the user the crontab file belongs to (unless redirected).
#
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
#
# For more information see the manual pages of crontab(5) and cron(8)
#
# m h dom mon d