[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: peculiar problem with bash



hi,

i dont think so. i believe it is a problem with the
shell directive in the first line of the script.
if it has, say, #!/bin/bash, make sure there IS a
/bin/bash (or whatever the .sh file has)
hope this helps.

Siva

PS: i am an alumni of annauniv. '92 CSE. what kind of
linux setup do we have now

--- Athena <linux@xxxxxxxxxxxx> wrote:
> 
> 
> On Fri, 14 Jul 2000, M K Saravanan wrote:
> 
> > hi,
> > 
> >  I downloaded a jdk1.2.2 rc4 for linux.  When i
> tried to run the
> > corresponding shell scripts to install jdk, bash
> is simply telling: No
> > such file or directory. But I checked the filename
> spelling, case, path
> > etc.., 100 times. Everything is correct. but when
> i got the following
> > error mess.
> > 
> > #./jdk-debug-1.2.2-RC4-linux-i386-glibc-2.1.2.sh
> > bash:
> ./jdk-debug-1.2.2-RC4-linux-i386-glibc-2.1.2.sh: No
> such file or
> > directory                   
> > 
> > It seems to be a very strange problem.  How can
> the bash say there is no
> > such file when that file exists? Even I gave the
> full path -- no
> > solution. What can be the problem?
> > 
>  
>       The problem is quite simple. There is an extra
> '\r' at the end of
> the line. You can find it by using 
>           od -c filename
>           If you see '\r' then you know the problem.
> I have had this
> problem with some scripts. ( Happens when you use a
> Windows/Dos editor to
> code your scripts )
>           For fixing it use
>            tr -d '\r' <filename  >newfilename
>            and run the script using sh newfilename
> 
> -George Samuel 
> 
> ---
> Visit our home page at: www.chennailug.org
> Send e-mail to 'ilugc-request@xxxxxxxxxxxxxxxxxx'
> with 'unsubscribe' 
> in either the subject or the body to unsubscribe
> from this list.
> 


=====
-----------------------------------+------------------------------------
Sivakumar Shanmugasundaram         | 38725, Lexington St, #210
sshanmu@xxxxxxxxxxxx               | Fremont, CA 94536
(510) 574-9556 (W)                 | (510) 742-6734 (H)




__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail ? Free email you can access from anywhere!
http://mail.yahoo.com/
---
Visit our home page at: www.chennailug.org
Send e-mail to 'ilugc-request@xxxxxxxxxxxxxxxxxx' with 'unsubscribe' 
in either the subject or the body to unsubscribe from this list.