Writing a deamon on Linux

Hi,

I have a UC4 Agent on my natural linux server.
I need to submit a natural proccess using that agent,
with a dependancy by calling a natural program that will give ok respond to submit.
So, I undersatnd that I need to write a deamon that will perform it.
How, do I need to write it (probably in C), what are the parms for connecting Natural using that deamon?

Thank you

You start a natural process from a shell script, so that (shell script) is what you “submit”,
and I guess UC4 has some readily available interface programs you can trigger from
the shell script to signal status to UC4 ?