| Subcribe via RSS

Viagra online
XANAXadderall onlineLevitraPuppies for sale

Cron Jobs in Linux through SSH

March 11th, 2010 Posted in Linux

Moving to Mac means finally losing PUTTY for the native Terminal.

1. Login:

 
ssh myuser@mydomain.com
 

2. Edit crontab:

 
crontab -e
 

3. Add 1 or more cron jobs:

 
10 */2 * * * /var/www/html/somedir/?c=import
10 */14 * * * /var/www/html/somedir/?c=import
 

4. Save: Use keystrokes ctrl + e
5. Type "y" to accept changes
6. Ignore next screen and just click Enter
7. Check to see if new job is listed:

 
crontab -l
 

Here's a quick format reference:
at that interval.
* * * * * command to be executed
- - - - -
| | | | |
| | | | +----- day of week (0 - 6) (Sunday=0)
| | | +------- month (1 - 12)
| | +--------- day of month (1 - 31)
| +----------- hour (0 - 23)
+------------- min (0 - 59)

Leave a Reply

You must be logged in to post a comment.