Gentoo Archives: gentoo-user

From: Christoph Gysin <cgysin@×××.ch>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Redirecting a script output to the mail command
Date: Tue, 01 Nov 2005 12:56:17
Message-Id: 43675F57.1070708@gmx.ch
In Reply to: [gentoo-user] Redirecting a script output to the mail command by "Thiago Lüttig"
1 Thiago Lüttig wrote:
2 > I need to redirect an script output to the mail command. how ?? i've
3 > tried the following:
4 >
5 > ./script.sh > mail recipient@×××××××.com <mailto:recipient@×××××××.com>
6 >
7 > but the bash says recipient@×××××××.com <mailto:recipient@×××××××.com>
8 > command not found.
9
10 Use the pipe character '|':
11
12 ./script.sh | mail recipient@×××××××.com
13
14 The greater-than character '>' is used for redirecting output to a file.
15
16 Christoph
17
18 PS: Please disable sending HTML emails in your gmail preferences.
19 --
20 echo mailto: NOSPAM !#$.'<*>'|sed 's. ..'|tr "<*> !#:2" org@fr33z3
21 --
22 gentoo-user@g.o mailing list