문제

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