maxthedork
MIS
This is a weird one. I have a script that runs on our PROD system and it works flawlessly. I copied the script over to our TEST system (identical platform - RHEL 3 with Kernel 2.4.21-60 ELsmp) and try to invoke it, and I get this error:
: bad interpreter: No such file or directory
I'm assuming this is referring to the #!/bin/sh line in the script? I checked and /bin/sh exists, is owned by root:root, and the mode is 755. Actually sh is just a pointer to bash, which is owned by root:root and mode 755, but I even tried changing the line to #!/bin/bash and it still gave me the same error. Runs perfectly on the PROD system.
Any ideas? Oh, I'm logged on as a user called luminis, on both systems. luminis has identical rights on both systems also.
: bad interpreter: No such file or directory
I'm assuming this is referring to the #!/bin/sh line in the script? I checked and /bin/sh exists, is owned by root:root, and the mode is 755. Actually sh is just a pointer to bash, which is owned by root:root and mode 755, but I even tried changing the line to #!/bin/bash and it still gave me the same error. Runs perfectly on the PROD system.
Any ideas? Oh, I'm logged on as a user called luminis, on both systems. luminis has identical rights on both systems also.