Date: Mon, 28 Aug 2000 12:59:52 -0400 From: "Andresen,Jason R." <jandrese@mitre.org> To: Claude Cormier <techsupport@devises-or.com> Cc: igorr@crosswinds.net, freebsd-questions@FreeBSD.ORG Subject: Re: Newbie need help to execute a shell script Message-ID: <39AA9A88.E5D9F028@mitre.org> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?39AA9A88.E5D9F028>