Sorry,

None of these worked. Still get the same error. Do the \n's show up in VI?

Cos they arent there.
Also, shouldnt the script work without the sh prefacing it?
eg
nsr <filename>
instead of
sh nsr <filename>
??

thanks in advance...


From: "Peter Kiem" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: "Red Hat Users List " <[EMAIL PROTECTED]>
Subject: Re: PHP Scripting - Hope you get all this
Date: Wed, 9 Jul 2003 15:56:57 +1000 (EST)

>> Im getting an error when running a script
>> : bad interpreter: No such file or directory
>
> If you ever see that in the shell, it means that the script you're
> running has DOS linefeeds in it.  Use either "dos2unix" or
> "tr -d '\n' < oldfile > newfile" to remove them.

or change it using vi

vi scriptname
:set ff=unix
:wq

--
Regards,
+-----------------------------+---------------------------------+
| Peter Kiem            .^.   | E-Mail    : <[EMAIL PROTECTED]> |
| Zordah IT             /V\   | Mobile    : +61 0414 724 766    |
|   IT Consultancy &  /(   )\ | WWW       : www.zordah.net      |
|   Internet Services  ^^-^^  | ICQ       : "Zordah" 866661     |
+-----------------------------+---------------------------------+
       My current spamtrap address is [EMAIL PROTECTED]



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

_________________________________________________________________
Hotmail is now available on Australian mobile phones. Go to http://ninemsn.com.au/mobilecentral/signup.asp



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

Reply via email to