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.
I wish to run seti@home everything I log in automatically. At the moment I manually run it and manually stop it again before I log out. I have a script for this.
I wondering where is the best place to put this? Would it make sense to start in it rc.local or call it from .bash_profile (although this called each time I open a terminal??)
Or even a cron? But maybe that isn't necessary since I don't launch it according to a given time.
Anything you want to run at start up you should be able to enter into your ~/.Xsession file. Some distro's don't come with this file, but you should be able to create one easy enough, and X will run it everytime it starts.
I meant to mention my distro. It's RedHat 9. I never knew about the .xsession file. The .bash_profile isn't on though?
cmfarley19,
I actually use a seti cache manager: Sebseti. It was written in perl and handle x units. I think if I put it in a cron I *think* it will start a new session every 15 minutes.. but I'll give it a go!
Thanks for the ideas guys! Again the .bash_profile runs only once when I log in first doesn't it? Not when I open each "window".
The only harm with putting it in the .bash_profile is that if you log into a shell terminal it will try to run the .bash_profile again, and might start seti again as a job under whatever user you logged in as.... i.e.
You log into RH 9 using graphical interface as user, .bash_profile in your users home directory is run, and starts Seti. You then CTRL+ALT+F1 and log in as the same user again at a terminal, your .bash_profile is run again and try's to start seti again, and you either get an error (if it can't run without X), or you end up with 2 instances of it.
Other than that, I don't really think there is any harm.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.