Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help? Cron Entry


FlyingMonkey

Recommended Posts

I am about to release:

 

Froogle Data Feeder v1

Released By: Calvin K

 

Description: Creates and automatically sends a data feed to Froogle, monthly. This Froogle Data Feeder, handles product duplicates, specials(if available), and automatic upload. It only adds products and specials that are available.

 

-------

 

But I have no clue how to install the Cron Entry...

 

0 4 * * 3 /usr/bin/php -q /home/<unix route to your file>/admin/froogle.php

 

Where and how do I install this... and what should the unix directory be?

 

Once it's installed, How do I test it?

 

 

Thanks.

Most likely your question has been answered, please do a search first.

Link to comment
Share on other sites

DISCLAIMER: I don't know anything about your script but I know something about cron jobs.

 

If you are on a typical shared server you can't enter a cron job directly (the crontab file is shared). You will need to have your host's support add the cron job for you. They should also be able to tell you the correct path to your script.

 

PHP scripts can be problematic as a cron job, often you have to execute them indirectly using Lynx or Perl. Ask your support people about this (& cross your fingers, some have no clue).

 

I test cron jobs by creating a little script to send me email with a time/date stamp when it executes, I then set a cron job to run every 3 minutes or so for testing.

 

I hope this helps,

 

Bob

 

<SNIP>

 

But I have no clue how to install the Cron Entry...

 

0 4 * * 3 /usr/bin/php -q /home/<unix route to your file>/admin/froogle.php

 

Where and how do I install this... and what should the unix directory be?

 

Once it's installed, How do I test it?

 

 

Thanks.

Link to comment
Share on other sites

I agree with Bob but here is some additional info.

 

If you have telnet access then you can use crontab -e and know vi editor commands.

 

Some hosts let you put cron jobs in your control panel.

 

Using usr/bin/php will cause you owner/permission/path problems. I usually use curl like so.

 

/usr/bin/curl -s -u username:password http://www.yourserver.com/catalog/admin/froogle.php

 

Plus remember windows servers dont have cron.

Link to comment
Share on other sites

I agree with Bob but here is some additional info.

 

If you have telnet access then you can use crontab -e and know vi editor commands.

 

Some hosts let you put cron jobs in your control panel.

 

Using usr/bin/php will cause you owner/permission/path problems. I usually use curl like so.

 

/usr/bin/curl -s -u username:password http://www.yourserver.com/catalog/admin/froogle.php

 

Plus remember windows servers dont have cron.

Thanks!

 

So your saying I should put this into the crontab?

 

0 4 * * 3 /usr/bin/curl -s -u user:pass http://www.mywebserver.com/catalog/admin/froogle.php

 

and this will run froogle.php?

 

where user:pass is the user:password into the admin folder?

Most likely your question has been answered, please do a search first.

Link to comment
Share on other sites

  • 6 months later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...