From owner-freebsd-questions@FreeBSD.ORG Thu Mar 11 16:25:41 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B9D6716A4CE for ; Thu, 11 Mar 2004 16:25:41 -0800 (PST) Received: from post5.inre.asu.edu (post5.inre.asu.edu [129.219.110.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9541D43D1F for ; Thu, 11 Mar 2004 16:25:41 -0800 (PST) (envelope-from David.Bear@asu.edu) Received: from conversion.post5.inre.asu.edu by asu.edu (PMDF V6.1-1X6 #30769) id <0HUF00001T4Z1O@asu.edu> for freebsd-questions@freebsd.org; Thu, 11 Mar 2004 17:24:35 -0700 (MST) Received: from smtp.asu.edu (smtp.asu.edu [129.219.110.107]) by asu.edu (PMDF V6.1-1X6 #30769) with ESMTP id <0HUF00N4XT4Z1F@asu.edu> for freebsd-questions@freebsd.org; Thu, 11 Mar 2004 17:24:35 -0700 (MST) Received: from moroni.pp.asu.edu (moroni.pp.asu.edu [129.219.120.183]) (8.12.10/8.12.10/asu_smtp_relay,nullclient,tcp_wrapped) with ESMTP id i2C0OYQw029557 for ; Thu, 11 Mar 2004 17:24:35 -0700 (MST) Received: by moroni.pp.asu.edu (Postfix, from userid 500) id D15C49C0; Thu, 11 Mar 2004 17:24:34 -0700 (MST) Date: Thu, 11 Mar 2004 17:24:34 -0700 From: David Bear To: freebsd-questions@freebsd.org Message-id: <20040312002434.GF7734@asu.edu> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline User-Agent: Mutt/1.4.1i Subject: variable assignment in shell script X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: David.Bear@asu.edu List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Mar 2004 00:25:41 -0000 I'm at a dead on. I'm trying to assign a variable MT='/usr/bin/mt -f /dev/nrsa0' in a shell script. The trouble is that the assignment isn't made and the script writes to stdout/err ./l0dump.sh: /dev/nrsa0: permission denied where l0dump.sh is the name of the script. Why would this assignment fail? I am running this as root. root definately has write access the /dev/nrsa0. This is really maddening. Any pointers? -- David Bear phone: 480-965-8257 fax: 480-965-9189 College of Public Programs/ASU Wilson Hall 232 Tempe, AZ 85287-0803 "Beware the IP portfolio, everyone will be suspect of trespassing"