Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

uuencode...

Status
Not open for further replies.

BIS

Technical User
Jun 1, 2001
1,893
NL
Hallo,

I use uuencode to attach files to sendmail in a script.

Suppose I have a file called test.txt, then the following will attach it:
`uuencode test.txt test.txt`

I have to run the script from a cron job, so in the script I include absolute paths. This means that at the uuencode part, it looks like this:
`uuencode /path/to/test.txt /path/to/test.txt`

which works fine... sort of

The problem is that when I do this, the file test.txt has been renamed to pathtotest.txt in the email - why is this? And is there a way around this?
 
as an aside, you could use a program like mpack to send attachments in emails at the prompt. this does MIME encoding, not UUEncoded, but almost all mail clients handle MIME, some nolonger support UUEncode.

ftp://ftp.sunet.se/pub/mime/mpack/ seems to have it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top