From owner-freebsd-questions@FreeBSD.ORG Sun Oct 26 01:11:02 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 106A81065679 for ; Sun, 26 Oct 2008 01:11:02 +0000 (UTC) (envelope-from kelly.terry.jones@gmail.com) Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.28]) by mx1.freebsd.org (Postfix) with ESMTP id BBB6C8FC13 for ; Sun, 26 Oct 2008 01:11:01 +0000 (UTC) (envelope-from kelly.terry.jones@gmail.com) Received: by yx-out-2324.google.com with SMTP id 8so433947yxb.13 for ; Sat, 25 Oct 2008 18:11:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=/Rpo/lECHuwk/eIaALJogFM68MpRhIR0YZxkGQTDKxU=; b=qMIsfJsU48SXdWJ89QKkBXy9rbgbRvAreUzse1Zj009cTqWE9PpLwdBbNoxZ4snCXN liU/XgCra9UQOTIlvqcQnQqD7Fl74SLUA+wIgVYdnzKxkicffg8BsEszRVMwd2I7LpcR AvRsYRzes6JXrYBiyYg9C4bxlrx2MwOW7bra8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=rXGsG33g9rALFQknH6pERlErulGjIXIcP9i8UCs3FBxWUpURBCJaK177zqDhoDvAuE SrF7AIXK7oUI4CSFGhjCrAe2LXe03TP14dwEwJRhc5cSJWskKIaxyGa7adFOtTJhowYe Pcem3zK7PmmjhqoTKUtQgnwl6QaxCEtuDh8XU= Received: by 10.65.23.5 with SMTP id a5mr4466374qbj.56.1224983460396; Sat, 25 Oct 2008 18:11:00 -0700 (PDT) Received: by 10.64.208.1 with HTTP; Sat, 25 Oct 2008 18:11:00 -0700 (PDT) Message-ID: <26face530810251811i3757db68wb7ed44faaf51444b@mail.gmail.com> Date: Sat, 25 Oct 2008 18:11:00 -0700 From: "Kelly Jones" To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: sudo multiple commands at once without shell script X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Oct 2008 01:11:02 -0000 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.