![]() |
|
Customer Support
Can I have a crontab?
Yes, just login to your shell using ssh and type:crontab -eThat will put you in the Vi editor editing your crontab. The Vi keystrokes you need to edit your crontab are: "i" for insert, then type out your cron line following the format below for each line, then "escape" to get out of insert mode, then ":" to get a prompt, then "wq" and then "enter" and it is saved.
The form of a crontab file is:
minute hour day month weekday command
To view your crontab file, type:
crontab -lTo remove your crontab, type:
crontab -rA perfectly good crontab might look like this:
MAILTO=yourname@yourdomain.comThe above crontab will execute the script "whales -v" from your "/save" directory every Monday morning at 4:41AM.
41 04 * * 1 /save/whales -v
The "whales" script should be executable (permissions like 700 or -rwx------). The "whales" script should also specify on the first line which interpreter you want to use like:
#!/usr/bin/perlor
#!/usr/bin/pythonIf you do not specify an interpreter, then it will assume you want the script interpreted by the shell "sh". Any output from the script will be emailed to the person listed as MAILTO. The MAILTO line is optional. To preserve shared resources, we discourage setting up a crontab which runs every minute. Modwest administrators will routinely reset scheduled tasks to run every 5-15 minutes if they are set to run more frequently.
Related Questions:
How do I do a traceroute to diagnose network problems?
Why does your service seem slow?
How do I get a command prompt on my own computer?
Internet Explorer shows a blank page on an SSL website like the Control Panel or signup page.
My POST to a secure form results in a blank page, the same form, or a 500 Internal Server Error.
After I install Bugzilla, I get error 403 Forbidden.
How do I install Gallery?
Where can I find links to 'Standards-Compliant' Web browsers?
I am having trouble installing phpBB2
How do I use a robots.txt file?
Do you provide CVS?
Can I use streaming media on my site?
I installed Norton Internet Security, and now I can't see video and other multimedia.
How do I use MnogoSearch Indexer?
Do you support Flash, Shockwave, Java Applets?
Can I use a blog or other content management system?
Do you run Linux?
Do you have Postgres?
Why doesn't mivascript interpret GET variables?
How do I contact my registrar?
What does everything in a Wusage report mean?
Whenever I make changes with Movable Type I get SBOX errors.
Are there any resources for dealing with comment spam in a Movable Type blog?
How Do I Add A Google Sitemap To My Website?
Do you provide SVN?
What can I do to improve Drupal's loading speed?
A security company says my server is vulnerable, what can I do?
Browse Categories:Getting Started, FTP, Telnet/SSH, Moving Domains, E-mail, Traffic Reports, Mailing Lists, Apache, PHP, CGI, Other Server-Side Scripting, MySQL Database, Imaging Libraries, Other Software, Billing & Terms, Control Panel, E-commerce, Pre-Sales |

