Using uuencode to email a file with a .out extension
Hi,
I am trying to use uuencode to send an email with an attachment that has a .out extension. When I first coded my program I was using a different extension, and it was working; however, when I switched to using a .out file, it stopped working. Can anyone tell me why this may be happening? Also, I know I could use Email:MIME or MIME:LITE; however, I can't download it(or any type of modules) to the unix server I am using so I have resorted to using uuencode, but if there is another command that I could use to send an email with an attachment, please let me know!!! Thanks! |
Quote:
Judging from the Email::MIME, I'll assume you're using Perl. And you say it was working when you had a different extension....so, why not just change the extension to what WAS working??? Rename the file? |
I can't change the extension because I don't have privileges to change the file being emailed. Also, I'm using Solaris 5.10, and because I don't upkeep the server, I can't simply download a newer version. Also, I tried using Perl, but found it easier if I simply ran it by invoking csh.
My super simple piece of code: #!/bin/csh uuencode file1.out file1.out | mailx -s "Report" emailAddress |
Please post the error you are getting / describe in more detail in what way your code is not working as expected.
|
I'm not getting an error, it acts like it runs, but it never sends anything. When I was using a test file with a different extension (something other than .out) it would send the email so I know the script works. I just think that uuencode doesn't like attaching a .out file so I'm trying to figure out why and if there is anything else that I could use instead of uuencode.
|
Quote:
Also, when you script, you really should put full paths in, to make sure things are working correctly. Instead of: Code:
uuencode file1.out file1.out | mailx -s "Report" emailAddress Code:
/path/to/uuencode file1.out file1.out | /path/to/mailx -s "Report" emailAddress Most importantly...has that script EVER worked for you?? And do you normally use csh instead of bash? |
All times are GMT -5. The time now is 02:53 PM. |