Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-01-2003, 03:50 AM   #1
LQ Newbie
Registered: Mar 2003
Location: India
Posts: 3

Rep: Reputation: 0
How to make our program run at booting

I want to know how can i make my C program to run at
start up(ie,at the time of booting).

And i want to know how to control mouse and keyboard events by using C code.

Any one please help me.

Thank you,

Old 03-01-2003, 04:50 AM   #2
Registered: Jan 2001
Location: Switzerland
Distribution: Gentoo
Posts: 376

Rep: Reputation: 30
I can only help you on the first question.
You have to add your prog to the boot scripts. Depending on what distro you are using, other files need to be changed. On my system, the boot scripts are in /etc/rc.d/
If your program runs like a service, either fork at the beginning, or start the program "name &". Just don't forget the &. This makes the program run in background.
Good luck
Old 03-01-2003, 11:41 AM   #3
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
Also to add, its usually your rc.local script you can add your program to, so it starts at boot time.


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
How to make a program run at start up time. TruongAn Linux - Software 22 10-26-2005 07:50 PM
can i make a script or program make a phone call? nephish Linux - Software 2 08-15-2005 10:02 PM
i make a program using forte how can i generate from that program an rpm abdelhlims Programming 0 07-13-2004 01:10 PM
getting firewall to run when booting _mu_ Slackware 3 01-16-2004 09:45 AM
Viewing program messages when program isn't run from command line? Locura Linux - Software 1 09-27-2003 09:19 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:11 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