[nflug] ubuntu sudo script

anthonyriga torrodimerda at yahoo.com
Thu Jun 21 11:11:04 EDT 2007


Thanks Josh that worked. I need more practive
scripting!! 

--- joshj at linuxmail.org wrote:

> for i in `find -name *wine*`; do sudo rm -f $i; done
> 
> Thus spake anthonyriga:
> 
> > How do you run script commands in bash shell using
> > sudo?
> > I was trying to delete some wine files and I get
> this
> > error here is the command:
> >
> > sudo for i in `find -name *wine*`; do rm -f $i;
> done
> > bash: syntax error near unexpected token `do
> >
> > If I take out sudo I get permission denied. How do
> you
> > run scripts overiding sudo? I like the security
> aspect
> > of sudo but sometimes it gets to be a pain.
> Suggestions?
> >
> >
> >
> >
> >
>
____________________________________________________________________________________
> > Need Mail bonding?
> > Go to the Yahoo! Mail Q&A for great tips from
> Yahoo! Answers users.
> >
>
http://answers.yahoo.com/dir/?link=list&sid=396546091
> > _______________________________________________
> > nflug mailing list
> > nflug at nflug.org
> > http://www.nflug.org/mailman/listinfo/nflug
> >
> _______________________________________________
> nflug mailing list
> nflug at nflug.org
> http://www.nflug.org/mailman/listinfo/nflug
> 



       
____________________________________________________________________________________
Choose the right car based on your needs.  Check out Yahoo! Autos new Car Finder tool.
http://autos.yahoo.com/carfinder/


More information about the nflug mailing list