I've to send a compressed file (.Z) with "mail".
How can I send the file and not the content of file? (attach)
Thanks
Davide
You should have a look at the search feture of this forum...this question has been answered a number of times before......
So try that...and you're looking for something along these lines:
k=thisfile.Z
uuencode $k $k | mailx -s "Message Title here" "abc@ghi.com"
uuencode will take the file and sent it as file attachment....you have two pararmeters.....both the same typically...the source filename and the filename it will be sent as.
Search for a post by Perderabo. It is also in the FAQ best posts area.
Perderabo has a script that you can run which will allow to add attachments in UNIX.