Re: [Ilugc] Output redirection help needed

2011-08-28 Thread Prasanna Venkadesh
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

Re: [Ilugc] Output redirection help needed

2011-08-27 Thread Girish Venkatachalam
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

Re: [Ilugc] Output redirection help needed

2011-08-26 Thread ashwin kesavan
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

Re: [Ilugc] Output redirection help needed

2011-08-25 Thread manoj kumar
> > >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 _

Re: [Ilugc] Output redirection help needed

2011-08-19 Thread 0
> 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 _

Re: [Ilugc] Output redirection help needed

2011-08-19 Thread Prasanna Venkadesh
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

Re: [Ilugc] Output redirection help needed

2011-08-19 Thread Sathia S
> > # 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

Re: [Ilugc] Output redirection help needed

2011-08-19 Thread Krishna
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

Re: [Ilugc] Output redirection help needed

2011-08-19 Thread subhojit ojha
> > >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/

Re: [Ilugc] Output redirection help needed

2011-08-18 Thread 0
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

Re: [Ilugc] Output redirection help needed

2011-08-18 Thread Prasanna Venkadesh
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

Re: [Ilugc] Output redirection help needed

2011-08-18 Thread 0
> > # 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