PDA

View Full Version : CRONS! little help please


cocoonfx
06-22-2007, 08:52 PM
Hello


I want to create a cron job to pull a txt file from my website and send it to my email every day.

The text file has a format 062007filename.txt

What i want to do is get the cron job to get the latest txt file.

I have never done a CRON job and i want to know if anyone can point me in the right direction in doing this.

domedia
06-22-2007, 08:58 PM
Your host is likely to have an online tool available for you to use.
The cron job will execute your script. Make sure you have this script already made before you start thinking about automating it.

cocoonfx
06-23-2007, 11:26 PM
Hello

No the hosting company does not have any automatic scripts to do this. I have asked them to provide some code but they will not.

I have tried googling this but i am getting confused.

Could someone point me in the direction of the code?

domedia
06-24-2007, 12:20 AM
Does your hosting company provide something like a Control Panel?
The majority of professional (and still not expensive ones) do, and that is where I set my cron jobs up
Maybe a reason to change hosting provider? 8)

This is what I do when creating a cron job:
1. Create the script that will do what I want. (I don't know how to write one for your needs)
2. Go to my control panel and set up the cron job to run the script at a set interval.

That's my non-techie approach, I am by no means a programmer :(

Anyone else have more in depth experience that can help out?

cocoonfx
06-24-2007, 01:42 PM
Hi


Yeah the host does have a control panel and i can get as far as getting the cron to send me an email but in the message it says Permissions Denied.

So i need to find a script i think....

davidj
06-24-2007, 05:34 PM
find a script??? it could be your host hasnt given you the correct permissions