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 |