0
我在添加CRON規則到Synology DS214se時遇到了問題。Synology上的CRON DS214se NAS
我添加行到/ etc/crontab中
* * * * * root /volume1/web/gym/bin/cron/cronTabTest.php
保存的crontab,並重新啓動了他
/usr/syno/sbin/synoservicectl --restart crond
重新啓動NAS盒。
- 重新啓動命令行在/ etc/crontab中但不起作用。
什麼即時做錯了?請幫幫我。
這是cronTabTest.php:
<?php
$file = 'test.txt';
file_put_contents($file, date('Y-m-d H:i:s').' ',FILE_APPEND);
echo 'cron';
?>
非常感謝。它解決了。 – user1951618