LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 05: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, 05:34 PM   #2
itsme86
Senior Member
 
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246

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

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


Reply



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

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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

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
Open Source Consulting | Domain Registration