PDA

View Full Version : Help with setting up a cron job


jenny1234
01-01-2008, 02:54 AM
Hi,

I have purchased FLMP pro, so I understand I should be able to set up a cron job in leiu of using the pixel image starter.cgi.

My host supports cron jobs. (unix/linux panel)
What do I type in the cron job in cpanel?
Does the cron job execute the starter.cgi?

I understand it should be just one line to type in (please dont refer me off somewhere else to read about cron jobs or watch a video)...just want the syntax and "stuff"
to type into cpanel as I cant find this doco anywhere.

Thanks

drquek
01-01-2008, 04:05 AM
How to set up cron is described in the installation guide.

Basically what you need to do is this (from the guide):

1. Firstly you need to set up script through the CRON:

In the 'startercron' script in 'cron' folder in zip distribution, edit
the line below "put here absolute path to your broadcaster directory":

$yourdir='/home/username/public_html/cgi-bin/fmlp';
Change it to your own directory path


2. Secondly, you must log into your webhost's control panel and do this:

For cPanel, click the Cron Jobs to edit CRON. Select Standard.

For some web hosts, click the FTP Manager and then CRONTAB to edit CRON.

*/25 * * * * perl /home/username/public_html/cgi-bin/fmlp/cron/startercron

What this means:
*/25 * * * * (minute, hour, day, month, day of week)

This will run a cron every 25 minutes.

The following line runs perl (Notice the space after perl):

perl /home/username/public_html/cgi-bin/fmlp/cron/startercron

If you do not know how to do this, ask your web host to do it for you.