This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Pages: [1]
1
CentOS-WebPanel Bugs / Cron Jobs Do Not Run That Use Dev Null
« on: March 04, 2019, 03:12:04 PM »
In the panel if a cron job is for example:
/usr/local/bin/php -q /home/xxxx/public_html/apps/console/console.php send-campaigns >/dev/null 2>&1
This part: >/dev/null 2>&1 keeps getting truncated, it removes the > and then the cronjob does not run.
It only works when I remove the /dev/null 2>&1
So the cronjob in the panel looks like this: /usr/local/bin/php -q /home/xxxxx/public_html/apps/console/console.php send-campaigns /dev/null 2&1
The above will not work! I tried editing the cron job manually in var/spool/cron and it shows correct there, but in CWP it still shows incorrect and the cron job does not run.
/usr/local/bin/php -q /home/xxxx/public_html/apps/console/console.php send-campaigns >/dev/null 2>&1
This part: >/dev/null 2>&1 keeps getting truncated, it removes the > and then the cronjob does not run.
It only works when I remove the /dev/null 2>&1
So the cronjob in the panel looks like this: /usr/local/bin/php -q /home/xxxxx/public_html/apps/console/console.php send-campaigns /dev/null 2&1
The above will not work! I tried editing the cron job manually in var/spool/cron and it shows correct there, but in CWP it still shows incorrect and the cron job does not run.
Pages: [1]