* Re: [gentoo-user-br] Redirecting a script output to the mail command
2005-11-01 12:19 [gentoo-user-br] Redirecting a script output to the mail command Thiago Lüttig
@ 2005-11-01 12:19 ` Mario Luiz Bernardinelli
2005-11-01 12:37 ` Thiago Lüttig
0 siblings, 1 reply; 4+ messages in thread
From: Mario Luiz Bernardinelli @ 2005-11-01 12:19 UTC (permalink / raw
To: gentoo-user-br
Hi,
I think you could do:
./script.sh | mail -s 'subject' recipient@myemail.com
Thiago Lüttig wrote:
> 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 recipient@myemail.com <mailto:recipient@myemail.com>
>
> but the bash says recipient@myemail.com <mailto:recipient@myemail.com>
> command not found.
>
> --
> ______________________________
>
> Atenciosamente,
> Thiago Lüttig
>
> ______________________________
--
"Talk is cheap. Show me the code."
Linus Torvalds
"May the force be with you!"
Star Wars
"May the Source be with you."
An unknown jedi programmer.
--
gentoo-user-br@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* [gentoo-user-br] Redirecting a script output to the mail command
@ 2005-11-01 12:19 Thiago Lüttig
2005-11-01 12:19 ` Mario Luiz Bernardinelli
0 siblings, 1 reply; 4+ messages in thread
From: Thiago Lüttig @ 2005-11-01 12:19 UTC (permalink / raw
To: gentoo-user-br
[-- Attachment #1: Type: text/plain, Size: 393 bytes --]
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 recipient@myemail.com
but the bash says recipient@myemail.com command not found.
--
______________________________
Atenciosamente,
Thiago Lüttig
______________________________
[-- Attachment #2: Type: text/html, Size: 695 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user-br] Redirecting a script output to the mail command
2005-11-01 12:19 ` Mario Luiz Bernardinelli
@ 2005-11-01 12:37 ` Thiago Lüttig
2005-11-01 12:44 ` Mario Luiz Bernardinelli
0 siblings, 1 reply; 4+ messages in thread
From: Thiago Lüttig @ 2005-11-01 12:37 UTC (permalink / raw
To: gentoo-user-br
[-- Attachment #1: Type: text/plain, Size: 1162 bytes --]
well... the bash doesnt complain about the sintax, but the shell appears to
frozen...
On 11/1/05, Mario Luiz Bernardinelli <mariolb@itelefonica.com.br> wrote:
>
> Hi,
>
> I think you could do:
>
> ./script.sh | mail -s 'subject' recipient@myemail.com
>
>
>
> Thiago Lüttig wrote:
> > 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 recipient@myemail.com <mailto:recipient@myemail.com>
> >
> > but the bash says recipient@myemail.com <mailto:recipient@myemail.com>
> > command not found.
> >
> > --
> > ______________________________
> >
> > Atenciosamente,
> > Thiago Lüttig
> >
> > ______________________________
>
> --
> "Talk is cheap. Show me the code."
> Linus Torvalds
>
> "May the force be with you!"
> Star Wars
>
> "May the Source be with you."
> An unknown jedi programmer.
>
> --
> gentoo-user-br@gentoo.org mailing list
>
>
--
______________________________
Atenciosamente,
Thiago Lüttig
______________________________
[-- Attachment #2: Type: text/html, Size: 2148 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user-br] Redirecting a script output to the mail command
2005-11-01 12:37 ` Thiago Lüttig
@ 2005-11-01 12:44 ` Mario Luiz Bernardinelli
0 siblings, 0 replies; 4+ messages in thread
From: Mario Luiz Bernardinelli @ 2005-11-01 12:44 UTC (permalink / raw
To: gentoo-user-br
I think you could to try to put the recipient mail rouned by inverted
commas to try to avoid the shell expansion:
./script.sh | mail -s 'subject' "recipient@myemail.com"
Unfortunately, I don't have any machine here to test... :)
Thiago Lüttig wrote:
> well... the bash doesnt complain about the sintax, but the shell appears
> to frozen...
>
> On 11/1/05, *Mario Luiz Bernardinelli* < mariolb@itelefonica.com.br
> <mailto:mariolb@itelefonica.com.br>> wrote:
>
> Hi,
>
> I think you could do:
>
> ./script.sh | mail -s 'subject' recipient@myemail.com
> <mailto:recipient@myemail.com>
>
>
>
> Thiago Lüttig wrote:
> > 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 recipient@myemail.com
> <mailto:recipient@myemail.com> <mailto:recipient@myemail.com
> <mailto:recipient@myemail.com>>
> >
> > but the bash says recipient@myemail.com
> <mailto:recipient@myemail.com> <mailto:recipient@myemail.com
> <mailto:recipient@myemail.com>>
> > command not found.
> >
> > --
> > ______________________________
> >
> > Atenciosamente,
> > Thiago Lüttig
> >
> > ______________________________
>
> --
> "Talk is cheap. Show me the code."
> Linus Torvalds
>
> "May the force be with you!"
> Star Wars
>
> "May the Source be with you."
> An unknown jedi programmer.
>
> --
> gentoo-user-br@gentoo.org <mailto:gentoo-user-br@gentoo.org> mailing
> list
>
>
>
>
> --
> ______________________________
>
> Atenciosamente,
> Thiago Lüttig
>
> ______________________________
--
"Talk is cheap. Show me the code."
Linus Torvalds
"May the force be with you!"
Star Wars
"May the Source be with you."
An unknown jedi programmer.
--
gentoo-user-br@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-11-01 12:54 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-01 12:19 [gentoo-user-br] Redirecting a script output to the mail command Thiago Lüttig
2005-11-01 12:19 ` Mario Luiz Bernardinelli
2005-11-01 12:37 ` Thiago Lüttig
2005-11-01 12:44 ` Mario Luiz Bernardinelli
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox