batch file thigns


Forum: Other Help Topics
Topic: batch file thigns
started by: chibiace

Posted by chibiace on Aug. 02 2004,08:30
i'm trying to write one of those linux batch file things. but it doesnt seem to want to work right. :S like i was using scite to make them but then it keeps having all these unknown commands. etc :S im using it to mass load .dsl files and firefox and the amsn ssl plugin thing.  all of which work if i do them manually. but i cant be stuffed doing that everytime dsl starts. perhaps there is a program for windows. since im in windows alot more.
Posted by clacker on Aug. 02 2004,11:56
chibiace, what does your file look like now?  It would help to answer you question if we could see the file you were trying to run.

A *.dsl extension file that is placed in your top level CD directory (use ISO editing programs in Microsoft Windows or in Linux before you burn the disk) will automatically be loaded at boot time.  This would do what you want to do as well.

Posted by chibiace on Aug. 02 2004,14:51
no no i dont want to write a new cd.

its just the commands on their own lines.

Posted by clacker on 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.

Posted by chibiace on Aug. 03 2004,04:18
i have
#!/bin/bash

i made the thing in scite, which im thinking now isnt a very good program.

and i run it like  

. filename.sh

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.