Mail not attaching the attachment when schedule in crontab
Hi ,
Iam want to send the mail with attachment , iam using below in my script
when i trigger the script manually from command prompt i can get with the attachment but when i schedule it in crontab iam getting the the mail without attachment, not sure why it is behaving in two different ways for manual running and cronjob running.
Please advice me.
Last edited by Franklin52; 04-20-2012 at 03:14 AM..
Reason: Please use code tags
I am trying to attach a .xls file using uuencode in HP Unix
uuencode res1.xls res1.xls | mailx abc@xyz.com
But in the receiving end, I couldn't see the attachement, instead of it some encoded text is there in the body of mail
Can anybody suggest how to attach the files in HP Unix. I don't... (12 Replies)
Hi,
In my script, i am using tar to combine 2 files, so that i can attach it to the mail.
everything is working fine and sending the mail successfully. But, when i save the file to desktop and unzip it.
a series of directories are there and finally those tar files are there.
i am using tar -cf... (1 Reply)
I have the following crontab entry.
0,30 00-16 * * *
This job runs every 30 minutes between the hours of 12:00AM and 4:00PM. How can I have it stop at 4:30PM instead?
Thank you,
David (3 Replies)
i wrote this code(( cat $REPORT_EMAIL;uuencode <$OUTFILE $OUTFILE ) | mailx -s "Auto Policy Attach Report Before batch job " $SUPPORT_EMAIL_GRP) in my shell script to attach afile
but in the mail i donot get a attachment
contais of the mail is
Auto Policy Attach Report Before batch job... (0 Replies)
Hi all,
Currently in shell script i am using the following command to send mail
echo "Certain assets are not loaded properly. PFA the result of the DataLoad" | mail -s "Weekly DataLoad - Failure Notification !!" $MAILINGLIST
I need to attach a file along with that. How should i handle this... (7 Replies)
Hi,
I have a script which will query the DB and added to crontab at 1,2,6,7 AM everyday and sends a email if count is 0.
Now the problem is, if crontab is disabled it doesn't sends a mail.
Please tell me how can I handle this situation in the script. (2 Replies)
All,
I'm a newbie with crontab and I need your help with schedule a cold-backup running every Sunday at 7am except 1st of the month.
Thank you so much. (2 Replies)
Hi all,
I would like to schedule a crontab script, which should run From 8pm Thursday to 2am Friday and it should run every 10 minutes. I have put a script like below, is it the correct one.
10 01,02,20,21,22,23,00 * * 4-5 /u01/app/test.ksh
Any other options available to schedule the same... (6 Replies)