Cron Job

Discussion and support for all Linux distributions and Unix flavours (FreeBSD, OpenBSD, etc).
Post Reply
Damina
Registered User
Posts: 42
Joined: 06 Sep 2005, 02:00
Contact:

Cron Job

Post by Damina »

Hey,

Is there a command that can be run from command line to add a new cron job? If there is, please can someone tell me what it is.
Vampyre_2099
Registered User
Posts: 1321
Joined: 04 Nov 2007, 02:00
Location: /home/jhb/fourways

Post by Vampyre_2099 »

I think you can use

Code: Select all

 crontab -u *username* -e
mybrute
myminicity
PCformat ZA Folding Stats

ImageImage
Spoiler: (show)
Desktop: Q8200 @ 2.33GHz ~ TRUE ~ DP35DP ~ 4GB Transcend Jetram RAM ~ Nvidia 8800GT ~ 250GB HDD
Notebook: T5550 @ 1.83GHz ~ 2GB RAM ~ ATI HD 2400 XT ~ 160GB HDD
Damina
Registered User
Posts: 42
Joined: 06 Sep 2005, 02:00
Contact:

Post by Damina »

Thanks but all that command does is list the scheduled jobs for a user.
What I'm looking for is a command to add a new CRON task.
Vampyre_2099
Registered User
Posts: 1321
Joined: 04 Nov 2007, 02:00
Location: /home/jhb/fourways

Post by Vampyre_2099 »

not to be mean but why not look at the cron manual

Code: Select all

man 8 cron
mybrute
myminicity
PCformat ZA Folding Stats

ImageImage
Spoiler: (show)
Desktop: Q8200 @ 2.33GHz ~ TRUE ~ DP35DP ~ 4GB Transcend Jetram RAM ~ Nvidia 8800GT ~ 250GB HDD
Notebook: T5550 @ 1.83GHz ~ 2GB RAM ~ ATI HD 2400 XT ~ 160GB HDD
Damina
Registered User
Posts: 42
Joined: 06 Sep 2005, 02:00
Contact:

Post by Damina »

Cool thanks man.

I'm a newb and didn't know there was a manual :)
Vampyre_2099
Registered User
Posts: 1321
Joined: 04 Nov 2007, 02:00
Location: /home/jhb/fourways

Post by Vampyre_2099 »

no problem

Chinese Proverb: Man who asks question is fool for a minute, man who doesn't ask is forever a fool
mybrute
myminicity
PCformat ZA Folding Stats

ImageImage
Spoiler: (show)
Desktop: Q8200 @ 2.33GHz ~ TRUE ~ DP35DP ~ 4GB Transcend Jetram RAM ~ Nvidia 8800GT ~ 250GB HDD
Notebook: T5550 @ 1.83GHz ~ 2GB RAM ~ ATI HD 2400 XT ~ 160GB HDD
SBSP
Registered User
Posts: 3124
Joined: 09 May 2006, 02:00
Location: Centurion

Post by SBSP »

Must it be a command ?

Otherwise you could just edit the crontab file. And put it in manually
Post Reply