clacker
Group: Members
Posts: 570
Joined: June 2004 |
|
Posted: June 18 2005,14:45 |
|
>> Well, I'm quite new both to Linux and DSL,
We all were when we started.
>> so forgive me for asking this
You have achieved forgiveness
>> 1) How this executable can be created?
You create an executable shell script by creating a file in an editor (say beaver) and making the first line:
#!/bin/bash
and adding your lines after that. When you save the file (named whatever you like, extensions don't matter), run the command chmod 777 myFile (myfile is your file's name)to make it executable. Then typing the name of that file (if it's in your current directory or in your path) will run that script.
>> 2) where should it be placed?
That depends on you. I'd create in in my home directory (/home/dsl) and then when I knew it worked move it to the /usr/bin directory.
>> 3) What file do I need to edit to make it run automaticaly?
You mean at startup? I'd put it at the end of the /opt/bootlocal.sh file
|