[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: redirecting the output with sudo



On Wed, Nov 16, 2005 at 07:37:47PM -0800, David Kirchner wrote:
> On 11/16/05, kamaraju kusumanchi <raju.mailinglists@gmail.com> wrote:
> > I have tried
> >
> > $sudo wajig doc > /root/wajig_doc.txt
> >
> > But it does not work. Using Debian sid, bash 3.00.16(1).
> >
> > regards
> > raju
> 
> The reason the above doesn't work is because "wajig doc" are the only
> arguments sent to sudo. Your current shell interprets the ">
> /root/wajig_doc.txt" arguments.
> 
> Your best bet is to find out if wajig has some sort of output flag, so
> you can do:

Why not use "script"?
-- 
Carl Fink                                         carl@fink.to
If you attempt to fix something that isn't broken, it will be.
	-Bruce Tognazzini



Reply to: