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
Sent: Tuesday, June 03, 2003 4:51 PM
To: [EMAIL PROTECTED]
Subject: : bad interpreter: No such file or directory


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 true
do
cd /home/fanatic54/hlds_l
nohup ./hlds_fan54 > output
date >> crashlog
sleep 10
done


It used to work perfectly fine on my 7.2 box, why not
in 9.0 ???


__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list




-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to