Re: redirecting the output with sudo
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:
wajig -flag wajig_doc.txt doc
(I don't know if it has any flags).
Reply to: