Author Topic: Creating CRON jobs in CWP  (Read 9766 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Creating CRON jobs in CWP
« on: January 19, 2019, 01:35:16 AM »
When I create a new CRON job in the CWP -> Server Settings -> CRONtab for users section it appears to be truncating my commandline. CWP7 Pro. The part of the command is anything after an & ampersand e.g. a CRON job ending with

> /dev/null 2>&1

becomes

> /dev/null 2>

and doesn't run. It does run when I delete the end of the command e.g. if I delete > /dev/null 2>&1 from the end, it completes. The full command is 115 characters long (including the end bit) Is there an escape character required? Do I need to include the statement in quotes? Also, not ALL of my CWP users are listed in the CRONtab for users section. They are ALL listed in the dropdown box to be used as the users to create the CRON job for, however, if I select one in the drop down that isn't listed under Scheduled CRON Jobs, the job DOESN'T appear to be created

Any assistance greatly appreciated

Offline
*
Re: Creating CRON jobs in CWP
« Reply #1 on: January 19, 2019, 01:48:51 AM »
I just tried to create a CRON job for a user not listed (but able to be selected) CWP returned the successful message BUT the new CRON and user specified is NOT listed in the crontab for users window

Offline
*
Re: Creating CRON jobs in CWP
« Reply #2 on: January 19, 2019, 08:55:49 PM »
Edited the CRON jobs manually in /var/spool/cron and it appears to be keeping the changes

Offline
***
Re: Creating CRON jobs in CWP
« Reply #3 on: June 06, 2019, 08:51:40 PM »
All I get is a message saying "a new tare has been successfully added" .  But no cron tabs are listed under user or root. I tried this under root login not user login. 
« Last Edit: June 06, 2019, 09:06:39 PM by pixelpadre »

Offline
*****
Re: Creating CRON jobs in CWP
« Reply #4 on: June 18, 2019, 09:21:50 AM »
Hi, do not use root user for Cron jobs. Try to use another user without superuser permissions.
You can ask me to solve any problem with your server for some money in pm  ;)
Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor
Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services