From owner-freebsd-questions Wed Mar 6 16:56:15 2002 Delivered-To: freebsd-questions@freebsd.org Received: from falcon.prod.itd.earthlink.net (falcon.mail.pas.earthlink.net [207.217.120.74]) by hub.freebsd.org (Postfix) with ESMTP id 91ED937B402 for ; Wed, 6 Mar 2002 16:56:10 -0800 (PST) Received: from sdn-ar-004dcwashp283.dialsprint.net ([206.133.15.213] helo=moo.holy.cow) by falcon.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16imCX-0005QK-00; Wed, 06 Mar 2002 16:56:09 -0800 Received: by moo.holy.cow (Postfix, from userid 1001) id 7E1D350B81; Wed, 6 Mar 2002 19:58:22 -0500 (EST) Date: Wed, 6 Mar 2002 19:58:22 -0500 From: parv To: Peter Leftwich Cc: FreeBSD Questions Subject: Re: Cannot change X screen resolution [tcsh?] Message-ID: <20020307005822.GA11742@moo.holy.cow> Mail-Followup-To: Peter Leftwich , FreeBSD Questions References: <20020306173122.G97469-100000@earl-grey.cloud9.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020306173122.G97469-100000@earl-grey.cloud9.net> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG in message <20020306173122.G97469-100000@earl-grey.cloud9.net>, wrote Peter Leftwich thusly... > > On Tue, 5 Mar 2002, Bob Giesen wrote: > > > > Capture the output of the X startup and check the messages. > > > I tried > > > # startx 2 > & 1 > /var/tmp/startuplog > > > and get > > > Ambiguous output redirect. > > > It's ambiguous because of the space you have after the ampersand > > ("&"). The shell is trying to run the command "startx 2 >" in > > the background. (It is ambiguous in that you're beginning to > > redirect the stderr output without telling the shell where you > > want it to go...) You must not have a space between the > > ampersand and the "1." > > Isn't this discussion about 2> and &1 etc. shell-dependent (tcsh)? why, yes. apparently tcsh(1) loathes "2>&1" redirection, prefers instead ">&". in addition, it also doesn't care about the spaces between ">" and "&". even when "l s >& p " is entered, histrory shows the command to be "l s > & p". so, if you haven't already figured it out, try this (in tcsh)... # startx >& log ...no wonder that you got the "ambiguous output redirect" message if you were using tcsh. - parv -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message