From: | Richard Fish <bigfish@××××××××××.org> | ||
---|---|---|---|
To: | gentoo-user@l.g.o | ||
Subject: | Re: [gentoo-user] Redirecting a script output to the mail command | ||
Date: | Tue, 01 Nov 2005 15:49:25 | ||
Message-Id: | 43678B69.8090109@asmallpond.org | ||
In Reply to: | Re: [gentoo-user] Redirecting a script output to the mail command by Peter Ruskin |
1 | Peter Ruskin wrote: |
2 | |
3 | >Try: |
4 | >sendmail recipient@×××××××.com < ./script.sh |
5 | > |
6 | > |
7 | |
8 | No, that will send the _contents_ of script.sh to recipient, not the |
9 | output of executing the script. I think you meant: |
10 | |
11 | ./script.sh | sendmail recipient@×××××××.com |
12 | |
13 | -Richard |
14 | |
15 | -- |
16 | gentoo-user@g.o mailing list |