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
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
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
> >
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:
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
-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
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
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
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