1

Calling Linux Service with parameters

view story
linux-howto

http://stackoverflow.com – I have a daemon in my Linux OS, and I want to pass parameters to this daemon from another C file which is daemon controller while the daemon's running. I search it with google, but nothing in my hands until now. Could you give some tricks and may be an example to do that? The daemon I have is copy/paste from this web site: http://www.enderunix.org/docs/eng/daemon.php /* UNIX Daemon Server Programming Sample Program Levent Karakas <levent at mektup dot at> May 2001 To compile: cc -o exampled examped.c To run: ./exampled To test daemon: ps -ef|grep exampled (or ps -aux on BSD syste (HowTos)