LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   desktop and scripts (https://www.linuxquestions.org/questions/linux-newbie-8/desktop-and-scripts-313142/)

chippy73 04-14-2005 08:36 AM

desktop and scripts
 
I want an icon on the desktop that turns on and off the internet connection.

If I SU ROOT in terminal screen and type this....

/etc/rc.d/init.d/speedtouch start

It eventually starts OK.

I think the problem is how do I answer the question to SU ROOT password?

Any help most welcomed.

Alan

heema 04-14-2005 08:54 AM

why dont you make it start at startup ?

chippy73 04-14-2005 09:03 AM

I don't want it running all the time, only when I want it to.

Alan

ahh 04-14-2005 09:06 AM

You would probably be better off using SUDO. Check out "man sudo" for details.

chippy73 04-14-2005 11:39 AM

I had a look at man sudo. But I am very confused.

Can someone give me some idea how to do it in a script file as per my first post?

Thanks Alan

ahh 04-14-2005 12:12 PM

You could use kdesu or gksu, these would pop up a box for you to type the password in. I think there are other similar programs as well.

chippy73 04-14-2005 12:24 PM

I have it working with kdesu, which prompts for the password. It now runs from the desktop.

Many thanks for your help

Alan


All times are GMT -5. The time now is 10:01 AM.