On Sun, Aug 28, 2011 at 12:12 PM, Girish Venkatachalam <
girishvenkatacha...@gmail.com> wrote:
>
> >>> > espeak 'hi' > /dev/null 2>&1
>
> >> what does 2>&1 really does?
>
>
> I will explain.
>
> $ ls > /dev/null 2>&1
>
> is the Bourne/ksh syntax for redirecting both stdout and stderr to
> /dev/nu
On Sat, Aug 27, 2011 at 8:38 AM, ashwin kesavan wrote:
> On 19 August 2011 18:57, Prasanna Venkadesh wrote:
>> On Fri, Aug 19, 2011 at 5:23 PM, Sathia S wrote:
>>>
>>> > espeak 'hi' > /dev/null 2>&1
>>
>>
>> Thanks all for helping me out. The above thing works perfect. and can anyone
>> give me
On 19 August 2011 18:57, Prasanna Venkadesh wrote:
> On Fri, Aug 19, 2011 at 5:23 PM, Sathia S wrote:
>>
>> > espeak 'hi' > /dev/null 2>&1
>
>
> Thanks all for helping me out. The above thing works perfect. and can anyone
> give me explanation of what it does? One is it redirects to /dev/null an
> > >I dont want these to be displayed in terminal and i wanted this to
> > redirect
> > >to some file.
>
If you dont want the message to be printed on the Terminal, this would work
:
$command 2>/dev/null
--
ManojKumar.A
http://getch.wordpress.com
_
> Thanks all for helping me out. The above thing works perfect. and can anyone
> give me explanation of what it does? One is it redirects to /dev/null and
> what does 2>&1 really does?
man page is your best friend. try man bash and search for "REDIRECTION".
--
0
_
On Fri, Aug 19, 2011 at 5:23 PM, Sathia S wrote:
>
> > espeak 'hi' > /dev/null 2>&1
Thanks all for helping me out. The above thing works perfect. and can anyone
give me explanation of what it does? One is it redirects to /dev/null and
what does 2>&1 really does?
--
Regards,
Prasanna Venkadesh
>
> # espeak hi > temp
>
> espeak 'hi' > /dev/null 2>&1
Regards
sathia
http://www.sathia27.wordpress.com
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
On Thu, Aug 18, 2011 at 8:51 PM, Prasanna Venkadesh wrote:
> I have written a chat applicaiton(via terminal) using ruby 1.8.7 and i want
>
> # espeak hi > temp
>
> but again the message appears in terminal
>
try #espeak hi &>temp
Bye,
Krishna.
___
ILUG
>
> >I dont want these to be displayed in terminal and i wanted this to
> redirect
> >to some file.
>
if you doesn't need to display the message, you can redirect it to /dev/null
file.
Regards
Subhojit
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/
On 08/19/2011 01:54 AM, Prasanna Venkadesh wrote:
> On Fri, Aug 19, 2011 at 1:48 AM, 0<0...@0throot.com> wrote:
>
>>>
>>> # espeak hi> temp
>>>
>>> but again the message appears in terminal
>>>
>>
>> try "espeak hi> temp 2>&1"
>
>
> it works when i am a root user, but fails when i use sudo.
> A
On Fri, Aug 19, 2011 at 1:48 AM, 0 <0...@0throot.com> wrote:
> >
> > # espeak hi> temp
> >
> > but again the message appears in terminal
> >
>
> try "espeak hi > temp 2>&1"
it works when i am a root user, but fails when i use sudo.
And thanks for giving the solution. how can i overcome sudo now
>
> # espeak hi> temp
>
> but again the message appears in terminal
>
try "espeak hi > temp 2>&1"
--
0
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
12 matches
Mail list logo