View Full Version : Crontab on prohosters
Yes, I still use prohosters for a few low traffic experiments.. don't flame me for it.
However, does anyone have any experience seting a crontab on their servers? I've tried several different fashions and cant seem to get it right... is there something special I'm missing?
Rich
Pinox
04-30-2001, 02:13 PM
Rich, can't you make a textfile with the crontab details like: ***5,10,15 /cron/tab/ (or something simulair) and save it as cron.txt.
The only thing youneed to do is then, to upload it to your server and with telnet activate the crontab with: crontab cron.txt
Tried this???
Ron
Yep, I've tried that, and I've tried doing it through tell net with crontab -e to make the file in VI.. still won't do dick...
Thanks for the reply though.
Rich
Much0S
04-30-2001, 03:09 PM
give me more info 'doesn't do dick' can really mean a lot http://bbs.adultwebmasterinfo.com/ubb/smile.gif
When you do a crontab -e do you see your cron job or does it 'disappear' every time?
If it does not disappear: look if the cron daemon is running (or demon if it is a linux system =) ... usually called crond or atd.
Doesn't do dick = doesn't run, doesn't e-mail an error, doesn't do anything... Crontab -l shows me the cronjob that I set, and cronjob -e opens up the cronfile I set in VIM..
My crontab on prohosters been running fine for almost a year. Does stuff every hour.
I cant say the same for their support, havent got them to give me a mysql database or set my new domain after 5 days. No response to tickets or emails. Do we get a mysql database already setup or do we need to apply for it at prohosters?
Anyone have their ICQ or some way to contact them?
Rich, your crontab's probably running fine, there must be something wrong with what you're trying to make it do. Are you trying to get it to run a cgi file? Have you got the paths right? Does the cgi file run from your browser?
yeah I'm running a cgi file that normally runs from telnet/shell/crontab.. here's my crontab data:
0 17 * * * /home/htdocs/users/southern/southern/greatshoppinglinks.com/cgi-bin/ei/script.cgi
Do the following command in telnet:
ps ax | grep crond
and write the output on the board. This will help me see what's wrong http://bbs.adultwebmasterinfo.com/ubb/smile.gif
Much0S
04-30-2001, 04:48 PM
As I said earlier, if your cron does change, but is not run, then it's probably crond (or atd) not running. Call up prohosters and bitch at them, or move your host.
Here's exactly what happened:
bash-2.04$ ps ax | grep crond
bash-2.04$
Just gave me the prompt again..
Then crond isn't running. You should contact them and ask them to start crond. That shouldn't be too hard for them http://bbs.adultwebmasterinfo.com/ubb/biggrin.gif
They won't be running atd, I suppose, as atd is the old version of crond and it's used hardly anywhere.
Well if they're running FreeBSD you should try to run : 'ps ax | grep cron' (without the 'd') as well but I don't think it will show differently.
That yeilded something different.. here it is:
107 ?? Ss 0:22.30 cron
4687 ?? I 0:00.00 cron
6752 ?? I 0:00.00 cron
6830 ?? I 0:00.00 cron
7142 ?? I 0:00.00 cron
7302 ?? I 0:00.00 cron
7392 ?? I 0:00.00 cron
10803 ?? I 0:00.00 cron
25143 ?? I 0:00.00 cron
26209 ?? I 0:00.00 cron
27292 ?? I 0:00.00 cron
34521 ?? I 0:00.00 cron
36145 ?? I 0:00.00 cron
48823 ?? I 0:00.00 cron
57214 ?? I 0:00.00 cron
58707 ?? I 0:00.00 cron
59298 ?? I 0:00.00 cron
59549 ?? I 0:00.00 cron
61009 ?? I 0:00.00 cron
71931 ?? I 0:00.00 cron
72648 ?? I 0:00.00 cron
81224 ?? I 0:00.00 cron
83875 ?? I 0:00.00 cron
95801 ?? I 0:00.00 cron
96538 ?? I 0:00.00 cron
That's indeed interestting hehe. That looks like some cronjob crashed.
Then you might want to ask them to reboot the server which will help instantly but they'll want to check on all cronjobs to ensure that this won't happen again, but they'll surely know to do that also http://bbs.adultwebmasterinfo.com/ubb/smile.gif
vBulletin® v3.7.3, Copyright ©2000-2012, Jelsoft Enterprises Ltd.