> 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.
Supposing sudo spawns a shell, something like ~> sudo whoami \; whoami or ~> sudo "whoami; whoami" should work. If not, maybe try explicitly running a shell: ~> sudo sh -c "whoami; whoami" _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"