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