On 08/19/2011 01:54 AM, Prasanna Venkadesh wrote:
> On Fri, Aug 19, 2011 at 1:48 AM, 0<[email protected]>  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?

if you need to run the command as root then the same thing should work. ie.,

sudo espeak hi > temp 2>&1

But if the file temp resides in a directory owned by root then try this,

espeak hi 2>&1 | sudo tee temp > /dev/null

-- 
0
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to