in the first line of the script it may reference a program that is not there... it will give you the same error:
 
if the first line is:
#!/usr/local/bin/bash
 
but your bash is
#!/bin/bash
 
then it will give same error
 
This example is a bit absurd, but the lesson is true.
-----Original Message-----
From: Hernan Brun [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 19, 2002 2:00 PM
To: [EMAIL PROTECTED]
Subject: no such file or directory

Hi folks!
I have a script in /etc/rc.d
If I execute it in rc.local way, not work
 
If I change to /etc/rc.d and write  ./script
No such file or directory
But the file is there and have x permision!!
What can i do?
The file was copied form backup cdrom
 
Thanks in advance
Hernan


*****

"The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers."

Reply via email to