hi,
I've developed some scripts to run from shell.
I need to call function when the code is stopped with Ctl+Z keyboard, I think that this sends a KILL signal to the PHP process
any ideas? thk Bernhard
In the Unix shells, CTL-Z issues the SIGSTP signal.
ok and do you know how to force my script to call a function on SIGSTP signal ?
byp;11010141 wrote:ok and do you know how to force my script to call a function on SIGSTP signal ?
Not from experience. Perhaps the manual would be of help? There is process control for CLI PHP scripts. PCNTL ... this is what you're doing already?
ok, Im reading some about PCNTL Ill try. I run some critical scripts against GPON nodes and i need to manage fored exits from the cli scripts. thak you
You're welcome.
GPON nodes, eh? Interesting bit of work you're doing.
Keep in mind that PHP is Free Software ... if it works, thank your chosen $DEITY and if it doesn't, you have no idea this conversation ever took place! 😃
🙂
its free but it works and very well. i use it sience 10 years in telecom industry and it works perfect, configuring nodes, provisioning clients like an OSS. talking soap to others.
bye and tks again