Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 08-07-2002, 01:04 PM   #1
Registered: Jul 2002
Posts: 38

Rep: Reputation: 15
Lightbulb Starting a program at boot

I have two programs that need to start automatically. The first program servers up map images and needs to start when the computer is first booted. The second program needs to start automatically when X windows is started. How do I go about doing that??? Neither program is a daemon. I am running RH 7.2.
Old 08-07-2002, 01:39 PM   #2
Registered: Apr 2001
Location: Cambridge, England
Distribution: Slackware 10, Fedora Core 3, Mac OS X
Posts: 617

Rep: Reputation: 30
you usually need to place a line to start the program in your startup scripts, usually rc.local which will be somewhere in /etc/rc.d/ depending on what distro you are using (you should fill that field in on your member page so that in future we know how to tailor advice).

The second program you want im not to sure on. It might be possible to put it in your .xsession files but im not sure. Do you use a graphical login screen or do you type startx at a console. Also when would you like the program to start. Immediately after X has loaded or after you window manager has loaded? What is your window manager (KDE, GNOME, WindowMaker)?

I may not be able to help you since my set up is not very close to red hat but i might be able to point you in the right direction. Also others will need those questions asked possibly.


Old 08-07-2002, 03:17 PM   #3
Registered: Jul 2002
Posts: 38

Original Poster
Rep: Reputation: 15
I type "startx" at a console.

I would like to have the program start after the window manager has loaded.

I am using Gnome.

BTW I am using RH 7.2
Old 08-07-2002, 03:30 PM   #4
LQ Addict
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
if there is a file in your home directory called .xinitrc before the line that starts your windowmanager add the commands you wish to execute placed on background
mine looks something like this
PHP Code:

Last edited by neo77777; 08-07-2002 at 03:31 PM.


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
Starting program with ./ AndyMCR Slackware 6 07-16-2005 06:57 PM
Starting to program in C snoopyswiss Programming 4 11-04-2004 10:38 PM
Won't Boot - Starting Printer Service - Starting CUPS jeansond Linux - Newbie 0 10-11-2004 07:39 PM
Question on starting program at boot satimis *BSD 2 04-05-2004 12:41 PM
Starting to program ;) Need a little help gamehack Programming 1 12-29-2003 10:45 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:02 PM.

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