![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Cron not running | garric | UNIX for Advanced & Expert Users | 6 | 04-11-2008 08:32 AM |
| Cron not running .. please help | beisaikong | Shell Programming and Scripting | 2 | 07-12-2007 07:05 AM |
| cron job is not running | Suguna | UNIX for Advanced & Expert Users | 3 | 09-28-2006 09:11 AM |
| Cron Job Not Running | nag_sundaram | HP-UX | 1 | 10-17-2005 10:38 AM |
| not running in cron | ajnabi | UNIX for Advanced & Expert Users | 4 | 07-11-2003 02:35 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Problem running a cron job
I have created a cron job for the vtiger workflow to execute the shell file named com_vtiger_workflow.sh to run the workflow.
I've created the following line in crotab -e : Code:
00 13 * * * /var/www/html/prashant/cron/modules/com_vtiger_workflow/com_vtiger_tiger_workflow.sh | mail -s 'Check Workflow' abc@mail.com.my The contents of the file are as follows : Code:
export VTIGERCRM_ROOTDIR=`dirname "$0"`/../../.. export USE_PHP=php cd $VTIGERCRM_ROOTDIR $USE_PHP -f vtigercron.php service="com_vtiger_workflow" Last edited by pludi; 2 Weeks Ago at 03:02 AM.. Reason: code tags, please... |
|
||||
|
depending on your env, shell, etc, commands in the crontab don't always work as written. sometimes they need quoting, or escaping of special chars.
I recommend putting the command you've added to crontab in a script instead, and call that script from crontab. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|