Hi, I have more (three) scripts I would like to run as the root user. For that I have setup an entry in the .alias file of my normal user as follows: alias combo="su -c "/bin/scr1 && /bin/scr2 && /bin/scr3"" No surprise, but it doesn't work:( I attempted to increase the number of the " chars on many different ways;), but still no fruits. Please anyway knowing the trick? Thanks, Pelibali
On Mon, 2005-06-06 at 18:44 +0200, pelibali wrote:
Hi,
I have more (three) scripts I would like to run as the root user. For that I have setup an entry in the .alias file of my normal user as follows:
alias combo="su -c "/bin/scr1 && /bin/scr2 && /bin/scr3""
No surprise, but it doesn't work:( I attempted to increase the number of the " chars on many different ways;), but still no fruits. Please anyway knowing the trick?
Try instead: alias combo='su -c "/bin/scr1 && /bin/scr2 && /bin/scr3"' And see if that works. -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998 "The day Microsoft makes something that doesn't suck is probably the day they start making vacuum cleaners." -Ernst Jan Plugge
participants (2)
-
Ken Schneider
-
pelibali