Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re: Unable to send the xls attachment file with the Mail::Sender

by mrguy123 (Hermit)
on Nov 21, 2011 at 07:28 UTC ( #939141=note: print w/replies, xml ) Need Help??

in reply to Unable to send the xls attachment file with the Mail::Sender

Hi there, not sure exactly what your problem is yet, but a common error when running from crontab is that you don't give the full file path. In this case the file is sent to Sendmail from another place, so take a look at where it is coming from.
Another thing that might help you is if you type "mail" in unix. This should give you a numbered list of all the cronjobs, for example:
U 44 root@il-kblwe02.corp Sun Oct 30 12:14 29/1454 "Cron <guyn@il- +kblwe02> /bin/tcsh -c 'source /exlibris/sfx_ver/sfx4_1/guyn/home/.csh +" U 45 root@il-kblwe02.corp Sun Oct 30 12:27 29/1454 "Cron <guyn@il- +kblwe02> /bin/tcsh -c 'source /exlibris/sfx_ver/sfx4_1/guyn/home/.csh +" >N 46 root@il-kblwe02.corp Mon Oct 31 12:27 35/1699 "Cron <guyn@il- +kblwe02> /bin/tcsh -c 'source /exlibris/sfx_ver/sfx4_1/guyn/home/.csh +" N 47 root@il-kblwe02.corp Tue Nov 1 12:27 35/1696 "Cron <guyn@il- +kblwe02> /bin/tcsh -c 'source /exlibris/sfx_ver/sfx4_1/guyn/home/.csh +"
By typing the number of the cron job you can get details about it which will help you debug
Good luck!!

Replies are listed 'Best First'.
Re^2: Unable to send the xls attachment file with the Mail::Sender
by vinoth.ree (Monsignor) on Nov 21, 2011 at 08:42 UTC

    Actually I am calling a perl program only from the crontab. In that program I have another perl program which will send the mail, for that mail sending program I am giving the full path of the file to be attached with the mail. I am executing the mail sending program using the qx($Cmd).

      Hi, can you maybe print a small standalone program that recreates your bug? It will make it much easier to understand what might be the problem

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://939141]
[Corion]: marto: Ouch :/ And having that as a (written) policy strikes me as inane...
[Corion]: So maybe you can use that momentum in the household instead, or use it for taxes or other chores ;)
[choroba]: At $job - 1, sending anything to one's personal account was prohibited and watched over

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2018-01-16 08:59 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (175 votes). Check out past polls.