Jump to content

Archived

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

neugi

CronJob

Recommended Posts

Hi,

i've got a script that writes a file to the server. if i run it from the webserver it works okay and writes the file to the server.

but if i run it as an cronjob with this command "php -f /var/www/tmi/output.php" it won't create a file on the server.

do i have to use a other command that the php script writes the file to the server?

best

Share this post


Link to post
Share on other sites
Remove the -f and just use php /var/www/tmi/output.php

Also, keep in mind where this file is being executed.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.