LinuxQuestions.org
Review your favorite Linux distribution.
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 03-30-2009, 05:47 AM   #1
vinayblore
LQ Newbie
 
Registered: Feb 2009
Location: Bangalore, INDIA
Posts: 2

Rep: Reputation: 0
Running an executable file at startup in Fedora 9


Hi,

I have an executable file called "Main".I want to run this executable file at startup.
What changes should I make in /etc/init.d and rc.d files to make my executable file to run at startup. I am using Fedora 9.
The default runlevel is rc5 in my system.
 
Old 03-30-2009, 07:00 AM   #2
cyprinidae
Member
 
Registered: Oct 2008
Distribution: Fedora, CentOS, Crunchbang
Posts: 46

Rep: Reputation: 16
Forgetting about runlevels and rcX.d init style you can add a command executing your script from /etc/rc.local. It will be executed after all the other init scripts. However, that's not the nicest way of doing things...
 
Old 03-30-2009, 08:23 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,536

Rep: Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506
Welcome to LQ.

If you want a program to start in Gnome :

Please run the command 'gnome-session-properties'.
A GUI will open, and you can add any application
to be "auto started".

Or just copy a 'Desktop Entry' ( Main.desktop ),
also called an 'Icon' to the hidden file
/home/vinayblore/.config/autostart/
.....
 
Old 04-03-2009, 05:20 AM   #4
vinayblore
LQ Newbie
 
Registered: Feb 2009
Location: Bangalore, INDIA
Posts: 2

Original Poster
Rep: Reputation: 0
Thank you very much knudfl.....its working...
 
  


Reply

Tags
files, rc


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
Running an executable file from a user created interface krisykc Linux - General 3 03-15-2007 01:54 PM
help: Executable file is modified when it is running. dongb Linux - General 1 12-29-2005 12:19 AM
help: Executable file is modified when it is running. dongb Red Hat 1 12-28-2005 10:51 AM
Running Windows Executable File in Fedora Core 2 sagar Linux - Software 1 11-06-2004 08:04 AM


All times are GMT -5. The time now is 04:19 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration