![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sending multiple attachments | deo2k8 | Shell Programming and Scripting | 1 | 01-07-2008 10:12 PM |
| Sending Attachments Through mailx | vrk1219 | HP-UX | 4 | 08-27-2007 08:06 AM |
| Sending attachments using email through shell script | symhonian | Shell Programming and Scripting | 6 | 01-27-2006 06:41 AM |
| sending attachments via unix | Abhishek Ghose | UNIX for Advanced & Expert Users | 6 | 09-30-2005 01:49 PM |
| sending files as attachments | SmartJuniorUnix | How do I send email? | 9 | 04-13-2001 04:34 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Sending email attachments
Hello,
I've search the forum, but I cannot find an answer to my specific question. I'm trying to send some files to my professor. Upon his request, I used the following: tar -cvf vh.tar vh_part1.c vh_part2.c vh_part3.c vh_part4.c vh_sample_run15.txt uuencode vh.tar vh.tar > proj1 mail xxx@xxx.edu < proj1 I get the following error message: "No such file or directory". So, instead of using proj1 as the redirect, I used one of my directories--which obviously didn't work. I'm at an impasse...I was wondering if anyone here could assist. He insists this is correct. I've tried it in both my home directory and the directory that actually contains the vh_partX.c files. Thanks for any info, Venus Last edited by venush; 06-05-2008 at 02:52 PM. Reason: adding prof response |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
tar your stuff, then
Code:
(echo "some mail body" | uuencode myfile.tar myfile.tar) | mail -s "some subject" myprof@bla.edu |
|
#3
|
|||
|
|||
|
Your posting shows all the commands as a single line. But those are multiple commands, and should be issued on separate lines. You should hit Return before "uuencode" and before "mail". (Maybe this is just a posting formatting error and not the real problem, though.)
|
|||
| Google The UNIX and Linux Forums |