Joseph wrote:

On Sat, 2005-07-23 at 10:16 +0200, Richard Fish wrote:
Joseph wrote:

I was trying to run this Red Hat memtest.sh script.
So I copied the linux.tar.gz (45Mb file) to /tmp directory.

Though when I try to run the script as user it keeps complaining:
mv: cannot stat `linux': No such file or directory
mv: cannot stat `linux': No such file or directory



Does "tar -tzvf linux.tar.gz" show the top-level directory as "linux", or "linux-2....". If the latter, do the following to make a suitable tar.gz for the script (it is easier than fixing the script!):

tar -xzvf linux.tar.gz
mv "linux-*" linux
tar -czvf linux.tar.gz linux

HTH
-Richard

That did it.
Though it complained when I did mv "linux-*" linux it wanted full dir name:
mv linux-2.6.12 linux


Sorry, my bad.  I should have left out the quotation marks.

This test is running right now on my main server, though when I try to run it on the new box it keeps complaining:
-bash: ./memtest.sh: /bin/bash2: bad interpreter: No such file or
directory

On both boxes the I have bash-3.0 so what is it looking for?

Ok, in this case it is an easy change to the script.  The first line says:

#!/bin/bash2

Change it to "#!/bin/bash" (without the quotation marks.. ;->)

-Richard

--
gentoo-user@gentoo.org mailing list

Reply via email to