[Users] msg_exec program in background

Daniel-Constantin Mierla daniel at voice-system.ro
Wed Jan 10 15:18:39 CET 2007


Hello,

On 01/10/07 15:19, Dimo wrote:
> Hi,
> I am having trouble with msg_exec. I want it to start the execution of
> a command which may wait for some time but i do not need openser to
> wait for the command to end in order to proceed with script execution.
> I tried this:
> msg_exec("command &");
>
> and this makes openser process hang forever with a defunct child.
openser should not hang. '&' make the shell to fork a new openser 
process to execute the command, and that becomes defunct when the 
command execution ends.

> Is
> there any way someone may suggest that i can make openser run a
> command and not wait for it to end?
> nohup does not do the trick also.
Apart of defunct process, does the execution of the command ends? Could 
openser still process new messages?

Cheers,
Daniel

>
> Best,
> Dimo
>
> _______________________________________________
> Users mailing list
> Users at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
>




More information about the Users mailing list