Then do the ...
And write answer to the file $MYANSWERFILE.tmp
and give the answer for client which poll this file
mv $MYANSWERFILE.tmp $MYANSWERFILE
Ofcourse it's also possible that client create subprocess, give that PID number for daemon. Daemon send signal for that dummy process.
Child wait that process to end.
thanks for theses completes answers.
Of course, i can modify the c daemon program. (i am coding it)
for kshji solution, thanks for all the code. I can use it. Seems to be a bit heavy for the fs system (embedded system)?
For queue message, it seems to be a good ligth solution.
How can make a message queue between shell script and the process? And does the messages are length dynamic?
my initial idea, but doesn't know if it is possible:
From application make entrie in /proc fs : /proc/mapping
and make a virtual tree.