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 > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Facing issue in Solaris OS in crontab for running shell script mabrar Shell Programming and Scripting 2 11-02-2007 06:32 AM
Crontab Mail message pankajkrmishra Shell Programming and Scripting 1 09-22-2006 04:36 AM
Recieved: Header help for sendmail rkf45144 UNIX for Advanced & Expert Users 0 06-29-2006 10:26 PM
NIS map mail.aliases specified, but NIS not running stancwong UNIX for Dummies Questions & Answers 2 08-29-2005 09:29 PM
running sql in crontab dorilevy UNIX for Dummies Questions & Answers 4 08-22-2002 07:13 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-04-2006
pankajkrmishra pankajkrmishra is offline
Registered User
  
 

Join Date: Jul 2006
Posts: 55
Mail not recieved when running from Crontab

Hi

I am not able to recieve mail when a script is run as a cron job. But when same job is run from command prompt mail is recieved .

Any help will be appreciated.

Thanks
Pankaj
  #2 (permalink)  
Old 08-04-2006
madhunk madhunk is offline
Registered User
  
 

Join Date: Nov 2005
Posts: 91
Sure there must be something wrong in the cron setup...Please post your cron job.
  #3 (permalink)  
Old 08-05-2006
pankajkrmishra pankajkrmishra is offline
Registered User
  
 

Join Date: Jul 2006
Posts: 55
Hi

Here is the cron entry of the process/sh file

25 09 * * * /opt/bea/wls61/config/dev05/batch_automation
/MBPSBatch/vendorfeed_concentra.sh > /opt/bea/wls61/config/dev05/batc
h_automation/MBPSBatch/logs/concentra_feed.log


Now when this file (vendorfeed_concentra.sh ) is run from command prompt , than a mail notification goes to the the users whose email is entered in a xml file. This xml file is envoked by the script at runtime. I am stuck here....

Thanks
Pankaj
  #4 (permalink)  
Old 08-05-2006
vgersh99's Avatar
vgersh99 vgersh99 is online now Forum Staff  
Moderator
  
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 5,119
have you tried looking in the usual place first?
  #5 (permalink)  
Old 08-09-2006
pankajkrmishra pankajkrmishra is offline
Registered User
  
 

Join Date: Jul 2006
Posts: 55
Hi

I tried to look at the link but could not find anything significant.

Please suggest

Regards
Pankaj
  #6 (permalink)  
Old 08-09-2006
aigles's Avatar
aigles aigles is offline Forum Advisor  
Registered User
  
 

Join Date: Apr 2004
Location: Bordeaux, France
Posts: 1,414
The .profile is not executed when scripts run from cron.
Try :
Code:
25 09 * * * . $HOME/.profile; /opt/bea/wls61/config/dev05/batch_automation
/MBPSBatch/vendorfeed_concentra.sh > /opt/bea/wls61/config/dev05/batc
h_automation/MBPSBatch/logs/concentra_feed.log

Jean-Pierre.
  #7 (permalink)  
Old 08-09-2006
pankajkrmishra pankajkrmishra is offline
Registered User
  
 

Join Date: Jul 2006
Posts: 55
Hi

Tried , but even that did not worked...... now I am sinking.........

Regards
pankaj
Sponsored Links
Closed Thread

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 03:24 AM.


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