Bash script as root problem

Gene Heskett gheskett at wdtv.com
Sun Mar 17 00:19:53 UTC 2013


On Saturday 16 March 2013 20:18:40 Bill K. Dengler did opine:

> A little hacky but what about
> sudo command_0
> sudo command_1
> sudo command_2
> sudo command_3
> sudo command_4
> sudo command_5
> sudo command_6
> su -c "command_7" $USER
> sudo command_8
> sudo command_9
> 
> Bill

Wrong syntax Bill, its
su user -c "command_7"

Cheers, Gene
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
My web page: <http://coyoteden.dyndns-free.com:85/gene> is up!
My views 
<http://www.armchairpatriot.com/What%20Has%20America%20Become.shtml>
The bland leadeth the bland and they both shall fall into the kitsch.
I was taught to respect my elders, but its getting 
harder and harder to find any...




More information about the ubuntu-users mailing list