Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
file attachments using mail in shells scripts on unix
Name: kuth Date: March 27, 2000 at 18:25:24 Pacific
Comment:
Hi I want attach file using mail or any other commond on unix. This processes I want do with shell scripts.
Name: mahmud Date: June 28, 2000 at 15:31:31 Pacific
Reply:
Hey, here is a simple script, I hope it will help.. cat filename.txt|mail -s "subject" user@mail.com note: you can use it in cronjob.
0
Response Number 2
Name: Mike Date: December 26, 2000 at 12:48:25 Pacific
Reply:
The cat command will push the text to the body of the message. But what do you do if you actually want to send a file as an attachment (a PDF file for example)?
Summary: Ok...I need to send a text file attachment using mail. I know every one is going to want to recommend uuencode but when I use this method I get extra tabs, spaces, etc. that I do not want (see exampl...
Summary: In shell script sed or awk command, can I use hexadecimal code for substitution? I want to perform the following: Input file: Line1 Line2 Line3 Line4 Output file: (all in one line now) Line1Line2Line...
Summary: Hi, I'm trying to run loops in shell scripts using the following script. loop=1 while [ loop -lt 10 ] do echo 'this is my $loop text-line' loop='expr $loop + 1' done ---- but I'm getting error: test: ...