Creating CRON jobs in CWP

Started by cwpnz, January 19, 2019, 01:35:16 AM

Previous topic - Next topic

cwpnz

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

cwpnz

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

cwpnz

Edited the CRON jobs manually in /var/spool/cron and it appears to be keeping the changes

pixelpadre

#3
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. 

Igor S.

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