Beautiful and brilliant, just what I wanted, thanks. dmesg | mail [EMAIL PROTECTED] -s test3
Best, Michael. >===== Original Message From [EMAIL PROTECTED] ===== >> >> Hi all, >> >> A quick question. Does anyone know how I can send an >> email in a non-interactive way? All I want to do is put >> the contents of an entire message into one line and post >> it off. If I do it like this I can call in some bash >> commands (like `dmesg`). Similarly I don't want to write >> an expect script to do this. >> >> I can do this for example: >> >> mail [EMAIL PROTECTED] -s test1 > >One liner body >echo Hello | mail [EMAIL PROTECTED] -s test1 > >Contents of some file >cat /some/file | mail [EMAIL PROTECTED] -s test2 > >Program output >dmesg | mail [EMAIL PROTECTED] -s test3 > >No body at all >mail [EMAIL PROTECTED] -s test4 < /dev/null > >Regards > >Daniel --- [EMAIL PROTECTED] Message generated in webmail.
