Control Web Panel

WebPanel => CentOS-WebPanel Bugs => Topic started by: cwpnz on January 19, 2019, 01:35:16 AM

Title: Creating CRON jobs in CWP
Post by: cwpnz 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
Title: Re: Creating CRON jobs in CWP
Post by: cwpnz 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
Title: Re: Creating CRON jobs in CWP
Post by: cwpnz 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
Title: Re: Creating CRON jobs in CWP
Post by: pixelpadre 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. 
Title: Re: Creating CRON jobs in CWP
Post by: Igor S. 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.