[gentoo-user] Redirecting a script output to the mail command
Hi. I Know, this question is stupid, but i simply don' t remenber how to do that :'( I need to redirect an script output to the mail command. how ?? i've tried the following: ./script.sh mail [EMAIL PROTECTED] but the bash says [EMAIL PROTECTED] command not found.-- __Atenciosamente,Thiago Lüttig__
Re: [gentoo-user] Redirecting a script output to the mail command
Thiago Lüttig wrote: I need to redirect an script output to the mail command. how ?? i've tried the following: ./script.sh mail [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] but the bash says [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] command not found. Use the pipe character '|': ./script.sh | mail [EMAIL PROTECTED] The greater-than character '' is used for redirecting output to a file. Christoph PS: Please disable sending HTML emails in your gmail preferences. -- echo mailto: NOSPAM !#$.'*'|sed 's. ..'|tr * !#:2 [EMAIL PROTECTED] -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Redirecting a script output to the mail command
On Tue, 1 Nov 2005 12:07:57 +, Thiago Lüttig wrote: I need to redirect an script output to the mail command. how ?? i've tried the following: ./script.sh mail [EMAIL PROTECTED] ./script.sh | mail [EMAIL PROTECTED] -- Neil Bothwick Some people are born mediocre, some people achieve mediocrity, and some people have mediocrity thrust upon them. - Joseph Heller, Catch-22 signature.asc Description: PGP signature
Re: [gentoo-user] Redirecting a script output to the mail command
Peter Ruskin wrote: Try: sendmail [EMAIL PROTECTED] ./script.sh No, that will send the _contents_ of script.sh to recipient, not the output of executing the script. I think you meant: ./script.sh | sendmail [EMAIL PROTECTED] -Richard -- gentoo-user@gentoo.org mailing list