shell - Python Paramiko Child Process -


i've written script uses paramiko library log on server , executes command. command invokes server execute python script (resulting in child process believe). believe server returns signal indicating command executed successfully, doesn't seem wait new child process complete - original parent process has been completed. there anyway of waiting reference any/all child processes generated result of command , waiting completed before returning control initiating client?

many thanks.

without code difficult. think should create rest service . post http://0.0.0.0/runcode , kick off process in different thread. end call. thread still running ...when done post http:// 0.0.0.0/afterprocessisdone response thread kicked off. in route can whatever want thay response there. if need rest check out flask. it's pretty easy , straight point small projects.


Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

mapreduce - Resource manager does not transit to active state from standby -

serialization - Convert Any type in scala to Array[Byte] and back -