LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-28-2004, 02:53 PM   #1
gamb8
LQ Newbie
 
Registered: Jan 2004
Location: Yorkshire, UK
Distribution: Red Hat 9
Posts: 14

Rep: Reputation: 0
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...
 
Old 01-28-2004, 02:59 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
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.
 
Old 01-29-2004, 03:30 PM   #3
gamb8
LQ Newbie
 
Registered: Jan 2004
Location: Yorkshire, UK
Distribution: Red Hat 9
Posts: 14

Original Poster
Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Iptables (with masq) troubleshooting, very simple script attached script and logs. xinu Linux - Networking 13 11-01-2007 05:19 AM
Directory listing - Calling shell script from a CGI script seran Programming 6 08-12-2005 12:08 AM
creating shell script that executes as root regardless of who runs the script? m3kgt Linux - General 13 06-04-2004 11:23 PM
send automatic input to a script called by another script in bash programming jorgecab Programming 2 04-01-2004 01:20 AM
linux 9 and java script error - premature end of script header sibil Linux - Newbie 0 01-06-2004 05:21 PM


All times are GMT -5. The time now is 11:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration