RE: [LIP] Problem executing scripts Bad Interpreter

"Godbole, Amarendra \(GE Consumer & Industrial\)" <[email protected]>
Newsgroups gmane.user-groups.linux.india.programmers
Message-ID <905989466451C34E87066C5C13DDF034033D698B@HYDMLVEM01.e2k.ad.ge.com>
> 2. Your scripts have CRLF for newline. Run them through dos2unix and
> then try running them. This seems more likely than (1). Probably you
> copied your script from a Windows partition, or FTP'ed the 
> script using

And if dos2unix is not around on your machine, use sed, like this:
sed -e 's/^M$//' script.sh > /tmp/script.$$ && mv /tmp/script.$$ script.sh

The ^M can be obtained by by typing ``ctrl-v ctrl-m'' or ``ctrl-vm''combo.

Cheers,
Amar

--
#include <std$disclaimer.h>


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE. 
http://ads.osdn.com/?ad_id149&alloc_id66&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.