Can someone help with cron jobs

lowridertj

New member
Joined
Apr 19, 2005
Messages
4
Location
Florida USA
curl http://www.REST MY PATH HERE> /dev/null 2>&1

THe cron job is sapose to look liek that but its not working is there anyway someone can please help me in finding out how to set this up. I had a back up of how it was sapose to look and cant find it off hand. And old cron setup was lost.

Please feedback would be great.

TJ
 
last cron i had for same feature was something liek

curl LINK HERE > /dev/null /dev/null

and was working. not sure if that makes a differeance. i hadnt set them up till now. i kicked an admin from my game server an he trashed a few things before i kicked em. i fixed everything now except teh cron..


Any more help is greatly aprpeciated.

TJ
 
I use 1>/dev/null 2>&1 because it works.
I suggest you leave that part out until the cron is working thatway you will recieve the email giving the reason as to why it's failing.

You will also probably want to put the full path to curl since sometimes the server will not recognize it as an actual command. It will probably be something like /usr/local/bin/curl

"which curl" might help you determine it's location. (curl is installed right?)

So in the end it might look something like this instead:
"/usr/local/bin/curl -options yourlink 1>/dev/null 2>&1"
 
yea curl has to be installed cause it was workign up till yesturday. when the dude went nuts-o. deleted crons and i booted em from server.


it was something liek curl link then the dev/null..


so it has to be installed. im jsut not sure on root to it...

thats all.
 
Back
Top