clacker
Group: Members
Posts: 570
Joined: June 2004 |
|
Posted: Aug. 02 2004,18:17 |
|
Did you write the shell script using a windows editor, or view it in windows and then save it? If so, you might want to open the file in Beaver. It's one of DSL's editors (not in the menu anymore, though) but you can still run it from the bash shell by typing:
beaver filename
Run the DOS to UNIX command under the tools menu conversions. It straightens out some carriage return/line feed differences between DOS and Linux.
Did you make the file executable with
chmod 777 filename.sh
or did you run it like:
bash filename.sh
Is the first line in the file:
#!/bin/bash
Perhaps you got some letter switched around. That happens sometimes, too. If you posted the code from your file, or even parts of it, we might be able to see what's going on.
|