Sepero
04-27-2003, 04:26 AM
Just when I thought I had it all figured out...
Ok, I have 2 scripts. One called "test", one called "test2". Both of them contain the same text:#!/bin/bash
echo "hi"Both of them have the same attributes.#ls -l test test2
-rwxrw-rw- 1 root root 23 Apr 26 20:06 test*
-rwxrw-rw- 1 root root 26 Apr 26 20:15 test2*
#lsattr test test2
-------------- test
-------------- test2"test" works fine. "test2" returns:bash: ./tools/wineinstall: /bin/bash
: bad interpreter: No such file or directory
The reason why is because "test2" was originally copied from a NTFS filesystem. But! That doesn't explain how to correct this problem. I have a LOT of files in this condition. Can anyone tell me how to correct these files?
EDIT[4-27-03]:
I am using a ext2 fs.
And YES, I did check to make sure there was no carriage return at the end of the lines. PLEASE HELP :)
Ok, I have 2 scripts. One called "test", one called "test2". Both of them contain the same text:#!/bin/bash
echo "hi"Both of them have the same attributes.#ls -l test test2
-rwxrw-rw- 1 root root 23 Apr 26 20:06 test*
-rwxrw-rw- 1 root root 26 Apr 26 20:15 test2*
#lsattr test test2
-------------- test
-------------- test2"test" works fine. "test2" returns:bash: ./tools/wineinstall: /bin/bash
: bad interpreter: No such file or directory
The reason why is because "test2" was originally copied from a NTFS filesystem. But! That doesn't explain how to correct this problem. I have a LOT of files in this condition. Can anyone tell me how to correct these files?
EDIT[4-27-03]:
I am using a ext2 fs.
And YES, I did check to make sure there was no carriage return at the end of the lines. PLEASE HELP :)