How to send an attachment from the Linux shell
Occasionally I have a ZIP file I need to transfer to myself from the shell (*nix) and SCP is not always available.
UUencode, part of the sharutils package, does the trick:
# uuencode /home/myname/file.zip file.zip | mail -s “Look at this file” [email protected].
If your system reports that UUencode is not available or not found, run:
# yum –y install sharutils
To install the package and necessary dependencies.
If UUENCODE isn’t available run: # yum –y install sharutils
That’s it!
Comments are closed.