On Mon, Oct 27, 2003 at 03:58:05AM +0200, Onur Kucuk wrote:
> 
> On Mon, 27 Oct 2003 08:41:27 +0700
> Fajar Priyanto <[EMAIL PROTECTED]> wrote:
> 
> FP> -----BEGIN PGP SIGNED MESSAGE-----
> FP> Hash: SHA1
> FP> 
> FP> Dear All,
> FP> I want to do some bash commands and then send the results by email
> FP> from CLI, can I do that?
> FP> 
> FP> I tried this but didn't work:
> FP> [EMAIL PROTECTED] Documents]# df > /home/fajar/Documents/df | mail -I -s
> FP> df [EMAIL PROTECTED] ~r /home/fajar/Documents/df
> FP> Null message body; hope that's ok
> FP> 
> FP> Seems that ~r option only works in the body of the message.
> FP> Thanks.
> 
> 
>  Think it this way
> 
>  > direct to file
>  | direct to next command

And you may also find "<" handy, as in
mail -s subject [EMAIL PROTECTED] <filename

t

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to