Sponsored Content
Full Discussion: What is a daemon process?
Top Forums Programming What is a daemon process? Post 16815 by johnsonmj on Thursday 7th of March 2002 05:53:05 AM
Old 03-07-2002
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.
 

10 More Discussions You Might Find Interesting

1. Programming

Daemon process

Hi, I have to write a daemon process, which performs certain operations in the background. Now since it performs operations in the background, it should not display anything to the standard output. The problem is that it still displays, text on standard output. Can anyone tell me (it is... (2 Replies)
Discussion started by: s_chordia
2 Replies

2. UNIX for Advanced & Expert Users

zombie daemon process!!

My daemon process is the child of init and init has the responsibility to remove it, once it turns zombie. But I want to ask why the daemon process which is child of init turns zombie in the first place. What measures I have to take to avoid this? rish (1 Reply)
Discussion started by: rish2005
1 Replies

3. Linux

daemon process

how i will write the daemon process,if any body have sample daemon process send me. (1 Reply)
Discussion started by: suresh_rupineni
1 Replies

4. Shell Programming and Scripting

How to starting process as daemon using ssh command?

Hello, I need to run a command on remote Linux using the ssh command from my local machine. I am able to execute the command on remote machine using ssh but it's behaving strangely. The command is supposed to start a daemon process on remote linux box and the control should return back to me... (5 Replies)
Discussion started by: nitinshukla
5 Replies

5. UNIX for Dummies Questions & Answers

How to write Pro*C daemon process using multithreading?

Hello, I am new to this forum and this is my first post here... I have never worked on either Pro*C or Multithreading..Now, i have to write a Pro*C, Multithreading daemon process.. I dont know where to start.. Can anybody help me with examples? 1. need to write a Pro*C multithreading... (0 Replies)
Discussion started by: kachiraju
0 Replies

6. Programming

How to find if a process a daemon ?

I have a scenario where I need to find if a process is a daemon process or not. This check needs to be done from within the process. I know there are no direct API's to do so. I have explored these options. 1. ctermid() - this can be unsuccessful as per the man pages 2. int devtty; if ((devtty... (7 Replies)
Discussion started by: vino
7 Replies

7. Shell Programming and Scripting

Diff between Bg and daemon process

Dear Unix Gurus, Plz provide major diff between background process and daemon process. Is it control available for daemon process?. (3 Replies)
Discussion started by: kkl
3 Replies

8. UNIX for Advanced & Expert Users

Needs help in launching a console application with the help of daemon process

Hi All, I am facing problem in launching a application with the help of a daemon process. Actually the application is based on command line that reads various commands for controlling the application from the console and accordingly executes those commands. The application always interact with... (3 Replies)
Discussion started by: gopallinux
3 Replies

9. Shell Programming and Scripting

run this script as a daemon process

Hi, HI , I have a simple script that moves files from one folder to another folder, I have already done the open-ssh server settings and the script is working fine and is able to transfer the files from one folder to another but right now I myself execute this script by using my creditianls to... (3 Replies)
Discussion started by: nks342
3 Replies

10. Programming

Daemon process

I wish to make a process run in the background, but only one instance of it, and not many, so when the program is loaded, it has to check whether another instance of the same program is running and if so to exit. How do I do this ? (4 Replies)
Discussion started by: sundaresh
4 Replies
lpc(8)							      System Manager's Manual							    lpc(8)

Name
       lpc - line printer control program

Syntax
       /etc/lpc [ command [ argument...  ] ]

Description
       The  program  is used by the system administrator to control the operation of the line printer system.  For each line printer with an entry
       in the file, may be used to start/stop several different functions.

       Without any arguments, prompts for commands from the standard input.  If arguments are supplied, interprets the first argument as a command
       and  the  remaining  arguments as parameters to the command.  The standard input may be redirected causing to read commands from file.  The
       commands and their parameters are shown below.  Commands may be abbreviated.

       ? [ command... ]
       help [ command... ]

	      Prints a short description of each command specified in the argument list, or, if no arguments are given, a list of  the	recognized
	      commands.

       abort [ all ] [ printer... ]

	      Terminates  an  active  spooling	daemon on the local host immediately and then disables printing (preventing new daemons from being
	      started by for the specified printers.

       clean [ all ] [ printer... ]

	      Removes all files beginning with ``cf'', ``tf'', or ``df'' from the specified printer queue(s) on the local machine.

       enable [ all ] [ printer... ]

	      Enables spooling on the local queue for the listed printers.  This will allow to put new jobs in the spool queue.

       exit
       quit

	      Exits from

       disablefR [ all ] [ printer... ]

	      Turns off the specified printer queues.  This prevents new printer jobs from being entered into the queue by

       restart [ all ] [ printer... ]

	      Attempts to start a new printer daemon.  This is useful when some abnormal condition causes the daemon to die  unexpectedly  leaving
	      jobs in the queue.  The command will report that there is no daemon present when this condition occurs.

       start [ all ] [ printer... ]

	      Enables  printing  and  starts  a spooling daemon for the listed printers.  This command also creates an file in the printer's spool
	      directory.  The file can be used by filters as an initialization flag.

       status [ all ] [ printer... ]

	      Displays the status of daemons and queues on the local machine.

       stop [ all ] [ printer... ]

	      Stops a spooling daemon after the current job completes and disables printing.

       topq printer [ jobnum... ] [ user... ]

	      Places the jobs in the order listed at the top of the printer queue.

Diagnostics
       ?Ambiguous command
       Abbreviation matches more than on command.

       ?Invalid command
       No match was found.

       ?Privileged command
       The command can only be executed by root.

Files
       Printer description file

       Spool directories

       Lock file for queue control

See Also
       lpq(1), lpr(1), lprm(1), printcap(5), lpd(8)

																	    lpc(8)
All times are GMT -4. The time now is 03:17 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy