Mail not recieved when running from Crontab


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Mail not recieved when running from Crontab
# 1  
Old 08-04-2006
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  
Old 08-04-2006
Sure there must be something wrong in the cron setup...Please post your cron job.
# 3  
Old 08-05-2006
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  
Old 08-05-2006
have you tried looking in the usual place first?
# 5  
Old 08-09-2006
Hi

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

Please suggest

Regards
Pankaj
# 6  
Old 08-09-2006
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  
Old 08-09-2006
Hi

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

Regards
pankaj
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Crontab is not loading/running

hi, i have crontab where i have put my db backup scripts but crontab do not run at specific time. i have checkted the scripts andwhen run the script as ./mydbbkp.sh so it successfully run and do the job but from cron it is not running whihcmeans cron is not running. i have an oracle user under... (3 Replies)
Discussion started by: janakors
3 Replies

2. Shell Programming and Scripting

Crontab running bi-weekly

Hi experts, Need your help to schedule the script(test.sh) bi-weekly in linux machine. script need to run at every alernate thursday at 9 am . Please help to run the same. (6 Replies)
Discussion started by: abhigrkist
6 Replies

3. Solaris

Please help why my Crontab is not running on time?

I have set up my cron job on the solaris SunOS 5.10 Generic_138888-03 sun4u sparc SUNW,UltraAX-i2 but it is not running on time as expected. Would you please help me to find out what I did wrong? I want to have this cron job run once every month on the 1st Wednesday of the month, but it ran... (6 Replies)
Discussion started by: ggcc
6 Replies

4. UNIX for Advanced & Expert Users

Particular script not running through crontab

Hi, I have created the below script, set -x # Set the Path of Environment file ENV_FILE_DIR=/opt/app/p1trp1c1/sybase/ecdwqdm/xrbid/QDM_Prod/bin LOG_DIR=/opt/app/p1trp1c1/sybase/ecdwqdm/xrbid/QDM_Prod/log export ENV_FILE_DIR export LOG_DIR # Set Audit Environment . ${ENV_FILE_DIR}/QDM.env... (8 Replies)
Discussion started by: yohasini
8 Replies

5. Solaris

send mail from crontab

I want the crontab to send me the output along with subject to my email address. In order to do that, I tried the following : 02 15 15 06 * /ora01/script.sh | /bin/mail -s "Task Complete" xxxxxxxxxxxx.xxxxxxxxxxxxxx@xxxxxxxxxxxxxx.com & I am getting the output in the email but there is no... (2 Replies)
Discussion started by: lg123
2 Replies

6. UNIX for Dummies Questions & Answers

Issue while running from crontab

Hi All, Here is my command which I've scheduled to be run from crontab, but it's giving error message: rah: rahhost executable needed but not in PATH My cmd is- 36 10 * * * /opt/IBM/dwe/db2/V9.5/bin/rah "df -m" >> /db2home/bculinux/Files/log/db.out 2>&1 Though I've added path... (5 Replies)
Discussion started by: NARESH1302
5 Replies

7. UNIX for Dummies Questions & Answers

crontab job not running

Hi all, down here part of the scheduled job in crontab (AIX Version 5) i have problem running jspPRE-ALL. i verrify permissions and privileges (the others job are working good) if i run the job in command line it work correctly # # Aggiornamento doni e continuity 00 02 * * 2-6... (5 Replies)
Discussion started by: ilpasta
5 Replies

8. UNIX for Advanced & Expert Users

Crontab is not running!!!

Hi experts, need your helpo. after editing the crontab while saving the file it says- "/tmp/crontabRlaauT" 1 line, 77 characters cron may not be running - call your system administrator And i checked after certain time. script in cron is not running. I got a mail in user saying... (1 Reply)
Discussion started by: thepurple
1 Replies

9. Shell Programming and Scripting

Crontab Mail message

Hi When I make change in crontab entries , I get below message as a mail. Can any one tell me what this indicates? ********************************************* From wlsdev05 Fri Sep 22 02:11:23 2006 Date: Fri, 22 Sep 2006 02:11:23 -0400 (EDT) From: "Geff Thomson - " <wlsdev05>... (1 Reply)
Discussion started by: pankajkrmishra
1 Replies

10. UNIX for Advanced & Expert Users

Recieved: Header help for sendmail

I have a mailing list that I am working with, I maintain, and host my own server. That includes the smtp server using sendmail. I'm running php, and apache. My problem is that my base of subscribers, are from a university as the list is for an organization within the university. That university... (0 Replies)
Discussion started by: rkf45144
0 Replies
Login or Register to Ask a Question