From owner-freebsd-questions Mon Aug 28 10: 0: 3 2000 Delivered-To: freebsd-questions@freebsd.org Received: from smtpproxy1.mitre.org (mb-20-100.mitre.org [129.83.20.100]) by hub.freebsd.org (Postfix) with ESMTP id 9BCAD37B422 for ; Mon, 28 Aug 2000 09:59:58 -0700 (PDT) Received: from avsrv1.mitre.org (avsrv1.mitre.org [129.83.20.58]) by smtpproxy1.mitre.org (8.9.3/8.9.3) with ESMTP id MAA28409 for ; Mon, 28 Aug 2000 12:59:57 -0400 (EDT) Received: from mailsrv2.mitre.org (mailsrv2.mitre.org [129.83.221.17]) by smtpsrv1.mitre.org (8.9.3/8.9.3) with ESMTP id MAA17806 for ; Mon, 28 Aug 2000 12:57:20 -0400 (EDT) Received: from mitre.org ([128.29.145.140]) by mailsrv2.mitre.org (Netscape Messaging Server 4.1) with ESMTP id G00HVV00.67B; Mon, 28 Aug 2000 12:59:55 -0400 Message-ID: <39AA9A88.E5D9F028@mitre.org> Date: Mon, 28 Aug 2000 12:59:52 -0400 From: "Andresen,Jason R." Organization: The MITRE Corporation X-Mailer: Mozilla 4.73 [en]C-20000509M (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Claude Cormier Cc: igorr@crosswinds.net, freebsd-questions@FreeBSD.ORG Subject: Re: Newbie need help to execute a shell script References: <20000828134505.EBA6F1F17@static.unixfreak.org> <39AA719A.1F3B9E97@devises-or.com> <20000828182757.A21602@linux.rainbow> <39AA7B69.D231BA3C@devises-or.com> <20000828190308.A21842@linux.rainbow> <39AA96D1.2C478561@devises-or.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Claude Cormier wrote: > > Created on Win PC and uploaded it... Why? Is this a problem.. I've been > doing this for all my PHP scripts which run fine in my browser... Is it > different running from the shell? Try this: display > sed 's/^V^M//' > display2 ./display2 ^V^M is (ctrl-V ctrl-M) (it will show up as ^M) why: It may be the case that you have a linefeed at the end of every line in the file, including the first line, so your shell is trying to execute: /bin/sh^M instead of: /bin/sh -- _ _ _ ___ ____ ___ ______________________________________ / \/ \ | ||_ _|| _ \|___| | Jason Andresen -- jandrese@mitre.org / /\/\ \ | | | | | |/ /|_|_ | Views expressed may not reflect those /_/ \_\|_| |_| |_|\_\|___| | of the Mitre Corporation. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message