Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: batch file thigns< Next Oldest | Next Newest >
chibiace Offline





Group: Members
Posts: 52
Joined: July 2004
Posted: Aug. 02 2004,08:30 QUOTE

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.
Back to top
Profile PM 
clacker Offline





Group: Members
Posts: 570
Joined: June 2004
Posted: Aug. 02 2004,11:56 QUOTE

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.
Back to top
Profile PM 
chibiace Offline





Group: Members
Posts: 52
Joined: July 2004
Posted: Aug. 02 2004,14:51 QUOTE

no no i dont want to write a new cd.

its just the commands on their own lines.
Back to top
Profile PM 
clacker Offline





Group: Members
Posts: 570
Joined: June 2004
Posted: Aug. 02 2004,18:17 QUOTE

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.
Back to top
Profile PM 
chibiace Offline





Group: Members
Posts: 52
Joined: July 2004
Posted: Aug. 03 2004,04:18 QUOTE

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
Back to top
Profile PM 
4 replies since Aug. 02 2004,08:30 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: batch file thigns

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code