Re: : bad interpreter: No such file or directory

2003-06-04 Thread Jonathan Bartlett
Check the end-of-line types. It's likely a Windows text file rather than a UNIX one. Also, what's the first line of the script? Jon On Wed, 4 Jun 2003, Emmanuel Seyman wrote: > On Tue, Jun 03, 2003 at 02:51:05PM -0700, John Scamba wrote: > > > > I am trying to run this simple script in RedHat

Re: : bad interpreter: No such file or directory

2003-06-04 Thread Gordon Messmer
Emmanuel Seyman wrote: On Tue, Jun 03, 2003 at 02:51:05PM -0700, John Scamba wrote: I am trying to run this simple script in RedHat 9.0 but i keep getting this error: : bad interpreter: No such file or directory Usually, this happens when the file you are trying to run is not executable. Actuall

Re: : bad interpreter: No such file or directory

2003-06-04 Thread John Scamba
Thanks man, this workedspent a whole day knockin my head on this. thanks again --- Gordon Messmer <[EMAIL PROTECTED]> wrote: > John Scamba wrote: > > I am trying to run this simple script in RedHat > 9.0 > > but i keep getting this error: > > : bad interpreter: No such file or directory > >

Re: : bad interpreter: No such file or directory

2003-06-04 Thread Gordon Messmer
John Scamba wrote: I am trying to run this simple script in RedHat 9.0 but i keep getting this error: : bad interpreter: No such file or directory Script: #!/bin/sh You have DOS linefeeds in your file. Convert the file to Unix linefeeds, either by copying the file using ASCII mode FTP, or one of:

Re: : bad interpreter: No such file or directory

2003-06-04 Thread Emmanuel Seyman
On Tue, Jun 03, 2003 at 02:51:05PM -0700, John Scamba wrote: > > I am trying to run this simple script in RedHat 9.0 > but i keep getting this error: > : bad interpreter: No such file or directory Usually, this happens when the file you are trying to run is not executable. Two solutions: 1) Make

Re: : bad interpreter: No such file or directory

2003-06-04 Thread Michael Schwendt
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, 3 Jun 2003 14:51:05 -0700 (PDT), John Scamba wrote: > I am trying to run this simple script in RedHat 9.0 > but i keep getting this error: > : bad interpreter: No such file or directory > > Script: > #!/bin/sh > echo "Monitoring HLDS" > while

RE: : bad interpreter: No such file or directory

2003-06-04 Thread John Scamba
Joe, I have tried #!/bin/bash and it does not work either. When I type "which sh" from the prompt i get: /bin/sh I can't understand this, I did a default server install. --- "Joseph M. Day" <[EMAIL PROTECTED]> wrote: > John, > > Try typing>> "which sh" from the prompt (exclude > quotes). > > I

Re: : bad interpreter: No such file or directory

2003-06-04 Thread Robert
try changing /bin/sh to /bin/bash or create a symbolic ling from bash to sh R.D. On Tue, 2003-06-03 at 17:51, John Scamba wrote: > I am trying to run this simple script in RedHat 9.0 > but i keep getting this error: > : bad interpreter: No such file or directory > > Script: > #!/bin/sh > echo

RE: : bad interpreter: No such file or directory

2003-06-04 Thread Joseph M. Day
John, Try typing>> "which sh" from the prompt (exclude quotes). I suspect you do not have sh shell installed or it is another location. You might want to change the line to: #!/bin/bash Joe, -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of John Scamba Se