Hi,
Can you elaborate on that a bit?
- You talk about a script _and_ the command line. Is the attachment name(s) given to the script from the command line?
- Can the attachment be included in the body of the mail or should it be an attached file.
A rough example, taking attachment name(s) from the command line:
Code:
#!/bin/bash
attachMe="$@"
for thisFile in ${attachMe}
do
uuencode ${thisFile} ${thisFile} | \
mailx -s "Subject goes here" someuser@some.place
done
Hope this helps.