On Thu, Jan 01, 2004 at 10:16:06AM +0530, [EMAIL PROTECTED] wrote: > ------------------------------------------------------------------------------------------------ > #tmp.sh > #!/bin/bash > echo "sdjfljsd" > ------------------------------------------------------------------------------------------------
>From the bash man-page: If the program is a file beginning with #!, the remainder of the first line specifies an interpreter for the program. The shell executes the specified interpreter on operating systems that do not handle this executable format themselves. The arguments to the interpreter consist of a single optional argu- ment following the interpreter name on the first line of the program, followed by the name of the pro- gram, followed by the command arguments, if any. This basically means that the start of your script is incorrect. Remove the first line. The first line should always be a "#!/bin/bash" > when i log into RedHat 7.3, and try to do a "chroot" to the "/" of the > RedHat 9 partition, i get the error:- > bash: Permission denied Are you logged in as root when you try to chroot? > i even tried copying /bin/bash from RedHat 7.3 to RedHat 9, but it did not > help. Bad idea in all cases. Read the docs, don't play with system files! Sameer. -- Research Scholar, KReSIT, IIT Bombay http://www.it.iitb.ac.in/~sameerds/ -- http://mm.ilug-bom.org.in/mailman/listinfo/linuxers

