LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Help with my first script? (https://www.linuxquestions.org/questions/linux-newbie-8/help-with-my-first-script-139686/)

gamb8 01-28-2004 01:53 PM

Help with my first script?
 
I've been using Red Hat 9 for about a week and i could really use a script to help me log onto the internet. I've tried loads of other methods like wvdial, none of which work.

At the moment, all i do is open a terminal window, type 'su' then the root password (working as non-root) then type /etc/init.d/speedtouch start, to start connecting. but i thought it might be pretty simple to create a script to do this for me, but i don't know where to start.

Under root i simply created a 'launcher' on the desktop running the /etc/init.d/speedtouch start, command but i know i shouldn't really be logged in as root, let alone connected to the web. and as non-root opening the terminal and switching user is annoying.

Thanks in advance for any help...

david_ross 01-28-2004 01:59 PM

My guess is that it should run each start anyway hence no need for a script - as root try:
chkconfig --add speedtouch
chkconfig --level 345 speedtouch on

Then reboot.

gamb8 01-29-2004 02:30 PM

wow it worked.
I get a timeout message when i start up and have to retype the command, but that should be no problem...i think...

Thanks a load :D


All times are GMT -5. The time now is 07:39 AM.