CRON JOB - LARAVEL - OUTPUT
<p>Hi I'm running CRON JOB with Laravel </p>

<p>Function declaration in Laravel</p>

<pre><code>protected function schedule(Schedule $schedule)
{
    echo "test CRON JOB\n";
    $file1 = '1.log';
    $file2 = '2.log';
    $schedule-&gt;command('command1')-&gt;sendOutputTo($file1);
    $schedule-&gt;command('command2')-&gt;sendOutputTo($file2);

}
</code></pre>

<p>CRON JOB - Setting</p>

<pre><code>pathToArtisan schedule:run 2&gt;&amp;1 &gt;&gt; /home/log/cron_output.log
</code></pre>

<p>Log file output (cron_output.log)</p>

<pre><code>test CRON JOB
Running scheduled command: '/opt/alt/php55/usr/bin/php' 'artisan'command1 &gt; '1.log' 2&gt;&amp;1 &amp;
Running scheduled command: '/opt/alt/php55/usr/bin/php' 'artisan' command2 &gt; '2.log' 2&gt;&amp;1 &amp;
</code></pre>

<p>The echo in the function schedule is displayed but the ones inside my command 1 and command 2 are not.</p>

<p>I tried </p>

<pre><code>echo "test"; $this-&gt;info('test');
</code></pre>

<p>No files 1.log or 2.log where created neither /home/log/ or where the Kernel.php file is or Command folder</p>

<p>Any ideas ? </p>

<p>Thank you</p>