Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi Frens,
I have to send a mail from UNIX which is a output of a script and send that to a lotus notes mail ID.
I tried the below command:
uuencode output.out | mail mymailIDwhich sends output.out as an attachment to the mymailID but it didnt work.
Can you please suggest me anyother command that takes the output of the script sample.sh and sends it as a mail to the mailID in lotus notes?
Thanks a lot in advance.

The above is likely the correct way to do it....only I believe you would want the file to copy text from to be "output.out" if that is the name of the file your script outputs to.
mail -s "error" name@xyz.com < /path/output.out

if you want to stick to uuencode, use this one
uuencode output.out output.out | mailx -s "..." ........
(well, it's not stuttered)
cheers
wollie

![]() |
![]() |
![]() |
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |