-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 09/24/07 21:44, Marc Shapiro wrote: > Kamaraju S Kusumanchi wrote: >> David Fox wrote: >> >>> It might be worth mentioning that "sudo" doesn't work across pipes: >>> >>> For instance: >>> >>> sudo command_1 | command_2 >>> >>> The first command will be run as root, but the second will be run with >>> normal user permissions. You can probably get around that by enclosing >>> the entire pipechain in quotes, but there's sometimes when just >>> entering su for the command and exiting su when finished is easier. >>> >>> >> >> hmmm... How about >> >> sudo command_1 | sudo command_2 >> >> > That's exactly the way I did it. Worked like a charm.
What about: sudo (command_1 | command_2) - -- Ron Johnson, Jr. Jefferson LA USA Give a man a fish, and he eats for a day. Hit him with a fish, and he goes away for good! -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFG+Q8IS9HxQb37XmcRAuZ2AKDC/UmOaIjXhxO91YyXP1YQGA6CNgCgyFqi aHfoYyJi61SPlXS7UMbqL6A= =oxZK -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]