It ’s the process that starts
os.system(cmd)
But
subprocess.check_output(cmd)
But that's fine.
If you throw a lot of jobs to another server with ssh,
Write failed: Broken pipe
And
fork: Resource temporarily unavailable
And
shell request failed on channel 0
I was in trouble because I got an error like that.
You can increase the upper limit of the number of processes with ulimit, Increase the time to wait for a server response in .ssh / config, During various trials and errors.
I will update it when it is resolved.
http://d.hatena.ne.jp/usata3/20061110/p2 http://blog.ybbo.net/2013/06/19/mac%E3%81%AEssh%E3%81%A7%E3%80%8Cwrite-failed-broken-pipe%E3%80%8D%E3%81%8C%E5%87%BA%E3%81%9F%E5%A0%B4%E5%90%88%E3%81%AE%E5%AF%BE%E5%87%A6%E6%B3%95/
Recommended Posts