LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

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


hi,there

I'm now write a shell-script to run a program as a daemon, as follow:
Code:
...
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
scuzzman
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:
Code:
prog_name > /dev/null 2> /dev/null &
 
Old 04-20-2005, 12:11 AM   #3
iclinux
Member
 
Registered: Dec 2004
Posts: 69

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


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
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:35 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