Date: Sat, 25 Oct 2008 18:11:00 -0700 From: "Kelly Jones" <kelly.terry.jones@gmail.com> To: freebsd-questions@freebsd.org Subject: sudo multiple commands at once without shell script Message-ID: <26face530810251811i3757db68wb7ed44faaf51444b@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
How do I run multiple sudo commands at once? This fails because the semicolon ends the whole sudo command: > sudo whoami; whoami root user This confuses tcsh: monica:~> sudo ( whoami ; whoami ) Badly placed ()'s. I could obviously write a shell script or something or do: > sudo whoami; sudo whoami but is there a better way? -- We're just a Bunch Of Regular Guys, a collective group that's trying to understand and assimilate technology. We feel that resistance to new ideas and technology is unwise and ultimately futile.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?26face530810251811i3757db68wb7ed44faaf51444b>