Help - Search - Members - Calendar
Full Version: help with crontabs using phpadsnew
The Planet Forums > System Administration > Server Hardware > RaQ Support
hoonz
Hi,

I'm fairly new to server administration and I needed some help with crontabs.

I'm installing the phpadsnew ad management software, in the directions it says I must add a line into the crontabs file. It listed a few different lines to use depending on the server. I have a raq4i and I'm not sure of which command to use.

These are the ones listed on the manual:

0 * * * * curl http://www.server.com/phpadsnew/maintenanc...maintenance.php


0 * * * * fetch -o - http://www.server.com/phpadsnew/maintenanc...maintenance.php


0 * * * * lynx -dump http://www.server.com/phpadsnew/maintenanc...maintenance.php


0 * * * * wget -q -0 - http://www.server.com/phpadsnew/maintenanc...maintenance.php


I chose the first one "curl" and I implemented the line by logging in as root, going to /etc/crontab, and using pico.

I'm not sure if this was the correct method nor do I know if it is working correctly. Can someone please point out if I have done this correctly or not? Also, do I have to restart the server after implementing this line?

Thanks in advance!
Coastie
you should not edit a crontab directly.

to edit a crontab, log in as the user level you want it to run as. ie.. user, admin, root, etc..

then typo

crontab -l

this will list the current crontab.

to edit, type

crontab -e

it will open in the default editor, usually vi

then finished :w to save, then :q to quit. You will see "installing new crontab" then you are finished, and you DO NOT need to restart anything.
hoonz
thanks... now the last thing i was wondering was, would you happen to know which line I should insert?
Coastie
Sorry, that I do not know.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.