The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



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

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 2 Weeks Ago
anaigini45 anaigini45 is offline
Registered User
  
 

Join Date: Oct 2009
Posts: 12
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
It is supposed to fire a mail to me at the specified time, but it does not work.

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"
Pls help me solve this problem.

Last edited by pludi; 2 Weeks Ago at 03:02 AM.. Reason: code tags, please...
  #2 (permalink)  
Old 2 Weeks Ago
varontron varontron is offline
Registered User
  
 

Join Date: Dec 2008
Posts: 110
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.
  #3 (permalink)  
Old 2 Weeks Ago
thegeek thegeek is offline
Registered User
  
 

Join Date: Apr 2009
Location: /usr/bin/vim
Posts: 444
You are missing to specify absolute path for some commands in both cron job, and in shell script as like many cron users do.
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:55 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0