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.--
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 '|':
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
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
4 matches
Mail list logo