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.

没有正确的解决方案

其他提示

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top