Can you pipe an additional command using sudo

Brent Fortman Brent.Fortman at radioshack.com
Thu Jun 6 17:16:08 EDT 2002


Put the commands you want in a script file.  Save it. Call it "bob".  sudo
bob.

Brent

-----Original Message-----
From: peterschmeichel at discoverfinancial.com
[mailto:peterschmeichel at discoverfinancial.com]
Sent: Thursday, June 06, 2002 3:50 PM
To: sudo-users at sudo.ws
Subject: Can you pipe an additional command using sudo


I am trying to get the following command to run. Any suggestions ?

sudo find /usr/local -type f -exec ls -ld {} \; | awk '{sum+=$5} END {print
sum}'

I can get the command to run up to the point where the "|" is.

Thanks,

Pete

____________________________________________________________ 
sudo-users mailing list <sudo-users at sudo.ws>
For list information, options, or to unsubscribe, visit:
http://www.sudo.ws/mailman/listinfo/sudo-users



More information about the sudo-users mailing list