Skip to contentSkip to conversation

bash scripting

DISCUSSION dave 1 participant 1 message Aug 15, 2004

lore
Share & tools
lore

dave

author
#0 lore raw

I tried the same script with #!/bin/bash as the first line and get the same error. Then I cd to /bin and do a ls bash and this is what I get.

[dave@dave bin]$ ls bash
bash*
[dave@dave bin]$ ./bash
[dave@dave bin]$ /home/dave/scripts/new.sh
: bad interpreter: No such file or directory
[dave@dave bin]$

Then I tried the samw script again and I get the same error. I used chmod and set the script file as 777. Still no go. I believe its not finding bash but I sure can't tell why. I ran a setup.sh script in /usr/share/webmin today and it ran just fine. I am confused Any more ideas? Thanks again.
Dave

Signature · 7 lines
Dave Pomeroy K7DNP SouthEastern Washington

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs