LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 09-21-2004, 06:18 PM   #1
elbriga
LQ Newbie
 
Registered: Sep 2004
Location: Brasil
Distribution: slackware, fedora, damnsmall, kurumin...
Posts: 12

Rep: Reputation: 0
Lightbulb background running process


Hi all,

Im new to linux programming, but I have a lot of experience in C...
Im connecting an LCD display (that ones with 2 lines and 16 cols...) on the parallel port, and I know how to control it ok. I want it to show system status of all kinds... and also I have some buttons atached to the LPT to send some commands...
Can someone give me some pointer, tutorials on how to make my program run as a process on background?

Thanks already, Gabriel
 
Old 09-21-2004, 06:34 PM   #2
itsme86
Senior Member
 
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246

Rep: Reputation: 58
Code:
/* Jump into background */
  if(fork())
    exit(0);
  setpgrp();
 
Old 09-21-2004, 07:08 PM   #3
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: ubuntu
Posts: 2,530

Rep: Reputation: 108Reputation: 108
See also here:
http://www.linuxquestions.org/questi...hreadid=233140
 
  


Reply


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 run any binary in background - background process tej Linux - Newbie 1 08-16-2004 01:27 AM
starting a background process running tcpdump on boot butthead Linux - Networking 1 10-15-2003 07:34 PM
Background Process mojozoox Linux - General 1 08-26-2003 03:16 PM
Background process h8r Linux - Newbie 5 01-13-2003 05:21 PM
background process gurra Programming 9 09-30-2001 02:31 PM


All times are GMT -5. The time now is 01:48 PM.

Main Menu
Advertisement
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