Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
You've got the whole /etc/rc.d for it. It just depends when you'd like the script to be started. The easies way will be to start it from /etc/rc.local. At the beggining of this file, give a command as you'd to to start it on a console. And it's done.
Mara: if youre doing it in -local how will that affect a command that i run as root? before anyone asks i have no desire to run it as a user... the script is go.sh -- i use it to connect my dsl modem to the internet... it has no user permissions to run
Even though it's more work, I would use the /etc/rc.d/init.d directory for this and create a link in the proper /etc/rc.d/rc?.d directory. After all, that's what it's there for.
Originally posted by Chijtska Mara: if youre doing it in -local how will that affect a command that i run as root? before anyone asks i have no desire to run it as a user... the script is go.sh -- i use it to connect my dsl modem to the internet... it has no user permissions to run
You don't need any permissions. It's a boot script! Just type it inside. If it's executable for root it will go.
finegan: yep-- bellsuck! nice moniker for it-- it has to be the world's worst isp (at least for dsl) there could possibly be...
some days it stays up until it renews the ip lease but most of the time it goes offline every hour or so and sometimes even more frequent like every 10 minutes... i know-- i have a b.s. website and probably no one checks it out and i dont get always get a lot of email on my mail server but id like for it to stay up more frequently...
i have a script for a reconnection--which, btw is not as easy as restarting pppd(you also actually have to rmmod uhci and wait a few sec's and then modprobe uhci again) but i really wish there was a script i could run in the background that checks if my computer is still connected and then if its not it will run my re.sh (restart connection script) for me and keep my offline time to a minimum...if anyone knows of such a script lemme know--ahh what am i saying--all you geeks have ethernet dsl modems haha...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.