Gentoo Archives: gentoo-user

From: Peter Ruskin <Peter.Ruskin@×××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Redirecting a script output to the mail command
Date: Tue, 01 Nov 2005 13:35:43
Message-Id: 200511011307.36617.Peter.Ruskin@dsl.pipex.com
In Reply to: [gentoo-user] Redirecting a script output to the mail command by "Thiago Lüttig"
1 On Tuesday 01 November 2005 12:07, Thiago Lüttig wrote:
2 > Hi. I Know, this question is stupid, but i simply don' t remenber
3 > how to do that :'(
4 >
5 > I need to redirect an script output to the mail command. how ??
6 > i've tried the following:
7 >
8 > ./script.sh > mail recipient@×××××××.com
9 >
10 > but the bash says recipient@×××××××.com command not found.
11 >
12 Try:
13 sendmail recipient@×××××××.com < ./script.sh
14
15 --
16 Peter
17 ========================================================================
18 Gentoo Linux: Portage 2.0.51.22-r3. kernel-2.6.13-gentoo-r4.
19 i686 AMD Athlon(tm) XP 3200+. gcc(GCC): 3.3.5-20050130.
20 KDE: 3.4.3. Qt: 3.3.4.
21 ========================================================================
22 --
23 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Redirecting a script output to the mail command Richard Fish <bigfish@××××××××××.org>