![]() |
My rendevous with Crontab :-)
Yo
If i do crontab cronfile it adds the shit to my cron and doesnt delete what in there right? <<<<<<<<<<,Semi Server nOOb |
Run "crontab -e"
|
format crontab:
|
usage: crontab [-u user] file
crontab [-u user] { -e | -l | -r } (default operation is replace, per 1003.2) -e (edit user's crontab) -l (list user's crontab) -r (delete user's crontab) -Ben |
And does any of this help juicy. Juicy I'm not for sure. Make a copy of your current one, put it in your cron file, and then import the cronfile :)
jDoG |
do this:
bash VISUAL=pico ; export VISUAL crontab -e then setup your cron and hit CTRL+X to exit and save it. |
Yes, it will overwrite what is already there (as per what mryellow posted from the help output).
Just use crontab -e and put in new entries yourself. |
say you name your crantab file "cron"
then you do: crontab cron it will overwrite whatever you had there before as long as its the same filename |
Quote:
|
crontab -e should do it... this is why cPanel always comes in handy.
|
Quote:
|
Quote:
|
crontab -e it is
Any good resource for the edit commands? |
Quote:
jDoG |
Quote:
|
Quote:
Read this: http://www-jics.cs.utk.edu/I2UNIX/un...de/node14.html Basically when you open it you're in naviagtion mode, to enter any text you hit "i" for insert (or "a" for insert after the current letter, "o" for insert on the next line, etc). You type your text, then hit escape to go back into navigation mode. To delete characters, type "x". You can navigate the cursor around with the arrow keys. Once you're done, type ":wq" to (w)rite the file and (q)uit. Phew. |
Tip:
You can add a mailto line at the top and the cron will email you the output from the scripts. This makes it easier to debug what this are working and not. [email protected] -Ben |
All times are GMT -7. The time now is 12:37 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123