How would i run /usr/local/sbin/copyfile.sh at 8 p.m today.
What should i write in crontab -e ?
How would i run /usr/local/sbin/copyfile.sh at 8 p.m today.
What should i write in crontab -e ?
Is it a one-time run? Then use at instead:
echo "/usr/local/sbin/copyfile.sh" | at 20:00
I have unfortunately set it at wrong time how would i remove it .Please help its urgent?
Use atrm. When queuing the job you should've gotten an output like
job <xx> at <date>
Use that job number, eg
atrm 42
Also, in case you haven't been aware of it: there exists a fine utility on all Unices called man man (All). Using this, with the name of a command as the first parameter will yield a description of the possible invocations, and what they mean, eg for man at (All). It's a wonderful and indispensable tool for anyone working with UNIX professionally, especially when used together with "common sense".
Hello,
something like:
56 21 * * 1-5 /home/ba_scripts/cp_statis123
In your case:
00 08 * * 1-5 /usr/local/sbin/copyfile.sh
Will run the script on day 1 to 5 at 08:00 o'clock.
Regards