Question

Is it possible to run a cron job on host that also saves a file to your website directory? I have an API I download a xml file from hourly. I would like to schedule cron to automate this but I'm not sure if it's possible.

No correct solution

OTHER TIPS

You can write a cron job to execute an arbitrary script. The script can do whatever you like provided it has the appropriate permissions.

* * * * * /bin/execute/this/script.sh

Will run the script script.sh

You need to configure the crontab entry appropriately (obviously).

Yes. You can schedule a script in cron. In the script you can add lines to generate the file and to place the file in the location you want.

Note: Be sure that you have permissions to create a file in that specific location path.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top