The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com



High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
script to monitor process running on server and posting a mail if any process is dead pradeepmacha Shell Programming and Scripting 13 03-06-2009 07:33 AM
daemon process suresh_rupineni Linux 1 08-21-2006 02:14 AM
zombie daemon process!! rish2005 UNIX for Advanced & Expert Users 1 11-25-2005 09:59 AM
Should a UNIX daemon process close open fds? kunalashar UNIX for Dummies Questions & Answers 1 10-24-2002 09:10 AM
Daemon process s_chordia High Level Programming 2 01-17-2002 02:09 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-27-2002
Kanu77 Kanu77 is offline
Registered User
  
 

Join Date: Feb 2002
Location: Ireland
Posts: 18
Cool what is a daemon process

This is gonna seem really silly to almost evryone here - but I need to know :

what is a daemon process?

Thanks
  #2 (permalink)  
Old 02-27-2002
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
A daemon process has no controlling terminal. It cannot open /dev/tty. If you do a "ps -ef" and look at the tty field, all daemons will have a ? for the tty.

Most daemons tend to last a long time, be owned by root, and do something useful. But you really can't count on any of these thing being true.

The lack of a controlling terminal is the real defining characteristic.
  #3 (permalink)  
Old 02-27-2002
Kanu77 Kanu77 is offline
Registered User
  
 

Join Date: Feb 2002
Location: Ireland
Posts: 18
Thumbs up So what you mean is....

So bacically, they are a typoe of monitor process but dont actually do anything..... Or am I way off the mark here????
  #4 (permalink)  
Old 02-27-2002
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
You're way off the mark. Asking what a daemon does in like asking what a program does....the answer depends on the specific example.

cron, inetd, syslogd all run as daemons and they do a lot. But it is easy to write a daemon that does nothing but just monitor something. It's also easy to write a daemon that does nothing at all.
  #5 (permalink)  
Old 03-07-2002
johnsonmj johnsonmj is offline
Registered User
  
 

Join Date: Mar 2002
Posts: 4
A second explanation, not as detailed

For simple unix programmers like me, a daemon is just a process that runs in the background, usually waiting for something to happen that it is capable of working with, like a printer daemon is waiting for print commands.
  #6 (permalink)  
Old 03-07-2002
Kanu77 Kanu77 is offline
Registered User
  
 

Join Date: Feb 2002
Location: Ireland
Posts: 18
Thumbs up Daemons.....

Cheers guys - that explains the daemon issue for me....
  #7 (permalink)  
Old 03-08-2002
rwb1959's Avatar
rwb1959 rwb1959 is offline
Registered User
  
 

Join Date: Aug 2001
Location: Virginia, USA
Posts: 438
This paper may help give you some more
insights into daemon process programming...
http://skywalker.mis.boun.edu.tr/~karakas/daemon.php
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:06 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0