answersLogoWhite

0


Best Answer
In Unix, with a C program you can run a quick function to do this. There is an example at:

(link moved to link section)

AnswerIn Solaris, you need to disconnect your program from your "terminal" ( scripts generally inherit the stdin, stdout, and stderr of your shell when you execute them ). For a shell program you can execute "nohup $program < /dev/null > /dev/null 2>&1 &". Or the shell program can redirect its own stdin, stdout, and stderr -- then you can execute "nohup $program &".
User Avatar

Wiki User

โˆ™ 2011-02-18 05:22:00
This answer is:
๐Ÿ™
0
๐Ÿคจ
0
๐Ÿ˜ฎ
0
User Avatar

Add your answer:

Earn +20 pts
Q: How do you create a daemon process in UNIX?
Write your answer...
Submit
Related questions

What is Daemon Process in unix?

The word daemon is a word of Greek derivation meaning "worker". Daemon processes in Unix are background tasks that do things, such as printing, networking, task scheduling, etc.


The Unix and Linux service the runs in the background is known as the?

Any Linux/Unix process that runs in the background is called a 'daemon' process. The word derives from the Greek meaning "worker".


In UNIX terminolgy a listener process that operates on a server to handle incoming requests for services is called a what?

Daemon


What is daemond in unix?

A daemon, not daemond, is a program or server application that runs in the background, possibly started during the boot process. A daemon is analogous to what is referred to as a 'service' in the Windows world.


What is deamon proscess in unix?

A daemon process is a background service, running as a disconnected process. This means it does not have a terminal interface with an output screen or a keyboard. These services run network processes, job scheduling, etc.


How do you run daemon process?

A daemon is typically spawned as a detached thread.


What are the different types of daemons in Linux?

LInux (and Unix) really don't differentiate between different "types" of daemons. A daemon is a background worker service process. It can do many things, such as networking, database,etc.


What is a difference between a daemon and a background process?

Background processes are tied to a terminal's job control, while a daemon runs headless. When the terminal is killed or the user is logged out, the process dies. A daemon does not need the user to be logged in.


Why is Linux develop?

To create a Free OS like the UNIX Operating System, They wanted to create a system that was like UNIX without all of the intellectual property issues that UNIX had. (UNIX was proprietary software).


What is process control in Unix?

process control


What is the mail daemon?

First off. A daemon is usually a name for a sever or service in Unix. The word daemon was originally used to describe FreeBSD network services (as their logo is a daemon). However the term has become more widely adopted through networking and many cross platform services user the term. A mailer daemon is a more technical term for "email server". If a message fails to be delivered, the daemon will return it to you along with an error message, the route it took and where it failed.


What is a CUPS server?

CUPS (Common Unix Printing System) is a daemon that controls printer drivers, print jobs, and network sharing.


What do you mean by a Process in unix?

A process is a piece of code running on a Unix server. The code is programmed to do a specific job.


How do you create dummy file in unix?

using touch command of UNIX. syntax touch &lt;filename&gt; will create dummy regular file.


How do you create Pipe in unix?

The vertical bar symbol '|' causes a pipe to be created that connects the output of one process to the input of another.


What is Unix configuration?

Unix configuration is the process of tailoring a freshly installed version of Unix to your particular environment. Each Unix system may do that differently.


Which command is used to create a sub processes?

For Unix, any command is run as a sub-process. You don't need an actual command to create the subprocess. You can also force the process to run in the background by appending a '&amp;' symbol at the end of the command.


What is the mail?

First off. A daemon is usually a name for a sever or service in Unix. The word daemon was originally used to describe FreeBSD network services (as their logo is a daemon). However the term has become more widely adopted through networking and many cross platform services user the term. A mailer daemon is a more technical term for "email server". If a message fails to be delivered, the daemon will return it to you along with an error message, the route it took and where it failed.


What are the features of daemon thread in java?

Any Java thread can be a daemon thread. Daemon threads are service providers for other threads running in the same process as the daemon thread. For example, the HotJava browser uses up to four daemon threads named "Image Fetcher" to fetch images from the file system or network for any thread that needs one. The run() method for a daemon thread is typically an infinite loop that waits for a service request. When the only remaining threads in a process are daemon threads, the interpreter exits. This makes sense because when only daemon threads remain, there is no other thread for which a daemon thread can provide a service. To specify that a thread is a daemon thread, call the setDaemon() method with the argument true. To determine if a thread is a daemon thread, use the accessor method isDaemon().


How does the daemon avoid getting killed when its parent process dies?

A true daemon process is disconnected from its parent, so it won't receive a kill signal if the parent dies. It becomes an independent entity after startup.


What is a vsftpd used for?

vsftpd is an FTP server for unix-like systems that is specially built to be efficient and very secure (very secure FTP daemon).


What is the system file in Unix?

There is no the system file. There are many files necessary to create a working Unix system.


How do you create a user in Unix?

Use useradd command


What is portablity in terms of unix?

Unix is inherently portable; this means that a program, script, or process may be moved from Unix system to Unix system with little effort or change (hence - portable).


How do you create a tee in unix?

The 'tee' command creates one for you automatically. You would use it to simultaneously look at output from a process and redirect it to a disk file (for example).