The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
cron cannot create the file.. surekha268 Shell Programming and Scripting 0 09-01-2008 10:45 PM
create a chmod cron job help please sirj Shell Programming and Scripting 2 04-19-2008 05:03 AM
How to create a cron job and run in quality system mahantysk HP-UX 2 03-25-2008 11:23 PM
Read words from file and create new file using K-shell. bsrajirs Shell Programming and Scripting 4 06-01-2007 09:15 AM
How to create cron job automatically? siegfried Shell Programming and Scripting 0 04-25-2006 10:01 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 09-01-2008
Registered User
 

Join Date: Aug 2008
Posts: 7
Question cron cannot create the file.

#For the test1.sh crontab
35 11 * * * /home/tolamas/suru/MailingScript/test1.sh

#test1.sh
cat /home/tolamas/suru/reports/test11.res
RCPT_LIST="st0030761@techmahindra.com"
SUBJECT="test mail dated ${MAIL_DATE} "
FROM="surekha.tolamatti@techmahindra.com"
(
cat /home/tolamas/suru/reports/test12.res
echo "HI this is crontab.."
) | mailx -s ${MAIL} -r "${FROM}" -s "${SUBJECT}" ${RCPT_LIST}
#end of file test1.sh

but cron is not able to execute the script
if it remove below two lines from the test1.sh the cron can execute the script.

cat /home/tolamas/suru/reports/test11.res
cat /home/tolamas/suru/reports/test12.res
Reply With Quote
Forum Sponsor
  #2  
Old 09-01-2008
vidyadhar85's Avatar
The Tutor
 

Join Date: Jun 2008
Location: INDIA
Posts: 543
read FAQ duplicate post are not allowed
Reply With Quote
  #3  
Old 09-01-2008
Registered User
 

Join Date: Aug 2008
Posts: 7
ohh ok
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:56 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0