Crontab

software development

#1

Hi, im looking to add a crontab to my site. Could someone tell me how i would go about doing this? I want it do do something every 5 minutes, 7 days a week.


#2

There is a wiki article on Crontab here…

http://www.wiki.dreamhost.com/index.php/Crontab

It might have enough information to get you started.

Mark


Save [color=#CC0000]$50[/color] on DreamHost hosting using promo code [color=#CC0000]SAVEMONEY[/color] ( Click for promo code details )


#3

ok, so i have this example: 10 16 * * * /home/someone/bin/mycoolscript.pl

but where do i put that? what do i name the file?


#4

You’ll have to log into your server with SSH. After that you’ll type:
crontab -e
to edit your cron file. Past in that line you have, then press
ctrl o
at the same time to save, and
ctrl x
to exit. You should get a success message about the new file being installed.

If you need help logging into your server with SSH, check out the wiki, there’s a pretty good article there.

-Matttail