PDA

View Full Version : Cron Job


duvys
04-07-06, 10:59 PM
I am trying to set up a cron job (first time) for to rebuild the search data with viking coders search module.
I was able to figure out the direct link that would cause the data to be rebuilt. www.YOUR-DOMAIN.com/Merchant2/4.24/modules/system/BROK_SEARCH.mvc?Store_Code=STORE-CODE&SearchAction=REBUILD&RAdd=1&RAttr=1

How am I supposed to enter that url as the command (I am using PLESK)?
I tried entering the full path with all the variables for the command but it isn't working.
/home/httpd/vhosts/DOMAIN.com/httpdocs/Merchant2/4.24/modules/system/BROK_SEARCH.mvc?Store_Code=STORE-CODE&SearchAction=REBUILD&RAdd=1&RAttr=1

Is that the way it is supposed to be entered? Obviously I replaced domain and store code.

ILoveHostasaurus
04-07-06, 11:44 PM
Use:


/usr/bin/GET 'http://long.url' > /dev/null 2>&1


Make sure to use the single quotes around the URL, and the stuff at the end will ensure that you don't get emailed the results of running the command every day.

duvys
04-08-06, 12:17 AM
Thanks!

Will that still send me an email if there is an error with the cron job?

ILoveHostasaurus
04-08-06, 12:36 AM
Take that last part of after the single quote for a day or two, that will let the errors make it to you.