>>> On 11/10/2008 at 7:21 PM, Bernard Wu <[EMAIL PROTECTED]> wrote: > Hi Mark, >>The nail command (which is what /usr/bin/mail and /usr/bin/mailx point to) > supports the "-a" option to attach a file to the message. > When I use the -a option, the command just hangs, and I have to Ctrl-C > twice to get out of it. The first Ctrl-C produces this message: > (Interrupt -- one more to kill letter), and the second Ctrl-C gets me out. > Almost looks like an interactive nail session.
That's because that's what nail/mail/mailx is. It's not hung, it's waiting for input from stdin. If you don't want anything in the body of the message then nail -a attachment -s "subject line" [EMAIL PROTECTED] < /dev/null Mark Post ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
