Ello
I am having trouble getting uuencode to work.
This is the command I am using.
gzip -c /directory/path/file.txt | uuencode /directory/path/file.txt.gz | \
/usr/bin/mailx -s"file -$(date)" email@email.com < /directory/path/file.txt.gz
However when I receive the email there is no attachment just the random characters.
This will be my first time using uuencode.
Thanks
Demi
Scott
2
I didn't test this, as I didn't set up sendmail, etc...
gzip -c /directory/path/file.txt | uuencode file.txt.gz | \
/usr/bin/mailx -s"file -$(date)" email@email.com
Thanks for the quick reply. When I use this command structure I receive command not found.
Scott
4
Which command, does it say?
I split your command over two lines using \ because it got rid of the scroll bar!
gzip -c /directory/path/file.txt | uuencode file.txt.gz | /usr/bin/mailx -s"file -$(date)" email@email.com
The output is this:
-bash: /usr/bin/mailx: No such file or directory
Scott
6
Hmm. I'm curious to know why that happens if your original command worked (albeit without the attachment).
And if you type
/usr/bin/mailx
at the prompt?