Can’t get cron job working on ASUSTOR NAS model AS-302T
<p>I’ve been struggling for weeks now trying to find any info on how to successfully setup a cron on my Asustor NAS, and would really appreciate any help.<br/><br/>
Here is what I have done via my favourite SSH program putty. I added my cron in the following file:</p>

<pre><code>/var/spool/cron/crontabs/root
</code></pre>

<p>The cron line added to the above file should run at 21:15 each night and looks as follows:</p>

<pre><code>15 21 * * * * /volume1/Web/test/cron.php
</code></pre>

<p>After adding the above line I restarted the cron daemon (I think) with the following command:</p>

<pre><code>/etc/init.d/S41crond restart
</code></pre>

<p>I’m not sure what I’m doing wrong, but it seems I just cannot get this cron to work.<br/><br/>
Also if anyone can give me a good site that can help me regarding my Asustor NAS in general it would be much appreciated. I want to change a lot of settings like my database session duration, cahce and so on and I can’t find any real helpful info online. Unfortunately Asustor’s online help is really not of much help to me.<br/><br/></p>

<p><strong>BELOW IS ONLY ADDITIONAL INFO ON CRON.PHP FILE</strong><br/>
The cron.php file is really a simple file that I’m currently just using to see if I can get the cron working, here is the code inside the cron.php file:</p>

<pre><code>&lt;?php
$dateFile = date('Y-m-d_H-i-s').'.txt';
fopen($dateFile, "w");
?&gt;
</code></pre>

<p>The above code works 100% when executed manually via browser.</p>

<p>Also works when following commands are excuted via Putty:</p>

<pre><code>cd /volume1/Web/test/
php cron.php
</code></pre>