Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-19-2005, 10:55 PM   #1
Registered: Dec 2004
Posts: 69

Rep: Reputation: 15
how to run a program as a daemon?


I'm now write a shell-script to run a program as a daemon, as follow:
startproc         $TEST_PROGRAM
(or start_daemon $PROGRAM_FULL_PATH)
But when I run it, $TEST_PROGRAM still prints info on the screen.

How to solve it ?

Best Regards.
Old 04-19-2005, 10:58 PM   #2
Senior Member
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
To background a program with no output, I use this:
prog_name > /dev/null 2> /dev/null &
Old 04-20-2005, 12:11 AM   #3
Registered: Dec 2004
Posts: 69

Original Poster
Rep: Reputation: 15
scuzzman, thanks a lot


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
MySQL Daemon doesn't run stedo Debian 1 11-23-2005 08:07 AM
Run program in daemon mode gubak Linux - General 3 06-20-2005 01:23 AM
run as a daemon dellcom1800 Linux - Software 6 10-15-2004 07:38 AM
Getting daemon to run at startup HaPPYFaCe Slackware 1 07-10-2003 08:50 PM
How do you run xine as a daemon? cmisip Linux - Software 3 02-11-2003 02:44 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:05 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration