The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


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 !!

More UNIX and Linux Forum Topics You Might Find Helpful
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

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 06-05-2008
Registered User
 

Join Date: Jun 2008
Posts: 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
Reply With Quote
Forum Sponsor
  #2  
Old 06-05-2008
Moderator
 

Join Date: Sep 2007
Location: Germany
Posts: 1,031
tar your stuff, then
Code:
(echo "some mail body" | uuencode myfile.tar myfile.tar) | mail -s "some subject" myprof@bla.edu
Reply With Quote
  #3  
Old 06-05-2008
era era is offline
Herder of Useless Cats
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,650
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.)
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 08:23 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0