I wanted to create 2 applications:
- A daemon program which communicates with all system related commands.
- A normal program which executes the daemon program created by me.
So is there a way to do this, as far as I am concerned I got the info that we can do it by using exec*()
and fork()
but I'm not sure about that. Any examples would be appreciated as I am a newbie.
EDIT1: -EXAMPLE I need a Program where the daemon will call the "date" command(not specifically date but including all other system commands) without super user privileges (aka root) and in-turn the daemon program should be called by my application created by me.
0 Answers