Topic: Using Crontab
Answers to Common Questions
how to use if/then statements in crontab?
if you really want to use awk, you could do it like this. Actually, once c == 2 you could go ahead and call shutdown if you wanted.... awk '{if ($15 ~ /XFMRDPAD/) c++ } END { if (c > 1) system("shutdown -i6") }' StructureService_PR.log I... Read More »
Source: http://www.experts-exchange.com/Networking/Unix_Networking/Q_2443...
How to schedule a task using crontab?
Yes crontab can do that for You 22 2 * * 0 cmd.weekly runs every sunday, 2:22am 22 2 * * 2 cmd.weekly runs every tuesday ... Read More »
Source: http://www.experts-exchange.com/Q_23552852.htm
How do I use crontab -e?
It would appear that crontab -e is using the wrong editor. Check the value of the environment variables EDITOR and VISUAL (echo $EDITOR & echo $VISUAL) If neither of these are set then you should set EDITOR to the editor you want to use (su... Read More »
Source: http://www.experts-exchange.com/OS/Unix/Solaris/Q_20256669.html
Answers to Other Common Questions
check this link, 1. http://ubuntuforums.org/showthread.php?t=102626 Read More »
Source: http://www.experts-exchange.com/Web_Development/Web_Languages-Sta...
The MAILTO variable in Cron is used by the cron daemon if it has any reason to send mail as a result of running the commands in the local crontab. Some things to note: If a MAILTO variable is defined in the crontab, but the value is empty, ... Read More »
Source: http://www.experts-exchange.com/OS/Linux/Q_24263217.html
If what you want is to copy the database dump to another server you coulf use SCP. You can create a key with scp so that it wont be asking password thus it is safe t1 use in a script and wont require you to embed a user account password in ... Read More »
Source: http://www.experts-exchange.com/Apple/Operating_Systems/OS_X/OS_X...
try the command in a /bin/sh script called from cron Read More »
Source: http://www.experts-exchange.com/Programming/Languages/Scripting/S...
On most systems, you must get permission from the system administrator before you can submit job requests to cron . On some shared systems, because there is only one crontab file, only the administrator has access to the crontab command. To... Read More »
Source: http://kb.iu.edu/data/afiz.html
Firstly, you should check the user login whether be allowed to have "crontab" right. Configure file are: /var/adm/cron/cron.allow /var/adm/cron/cron.deny If you are authorized to run "cron", then you could be able to list by "crontab -l", a... Read More »
Source: http://www.experts-exchange.com/Q_20148018.htm
You could try using the start command with the /B flag: http://www.computerhope.com/starthlp.htm Read More »
Source: http://www.experts-exchange.com/Q_25793060.htm
Want A Personal Answer?
731,098 people are answering.
About - Privacy - AskEraser - Advertise - Careers - Ask Blog - iPhone - Android - Help - Feedback ©2012 Ask.com