Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #19077 > unrolled thread
| Started by | Mac Smith <macsmith.us@gmail.com> |
|---|---|
| First post | 2012-01-18 14:44 +0530 |
| Last post | 2012-01-18 09:23 +0000 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.python
subprocess.Popen strange bhaviour Mac Smith <macsmith.us@gmail.com> - 2012-01-18 14:44 +0530
Re: subprocess.Popen strange bhaviour Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-01-18 09:23 +0000
| From | Mac Smith <macsmith.us@gmail.com> |
|---|---|
| Date | 2012-01-18 14:44 +0530 |
| Subject | subprocess.Popen strange bhaviour |
| Message-ID | <mailman.4825.1326878086.27778.python-list@python.org> |
Hi, I am using subprocess.Popen to start a movie ripping command HandBrakeCLI. My server is 64bit ubuntu server and has 8 cores. When the command starts it uses all 8 cores upto 80%-100% and works fine, but after 270 seconds the cpu usage of all the cores drops to 0% - 1%. I tried this many time this happens exactly after 270 seconds. Is there some predefined timeout?? -- Mac
[toc] | [next] | [standalone]
| From | Steven D'Aprano <steve+comp.lang.python@pearwood.info> |
|---|---|
| Date | 2012-01-18 09:23 +0000 |
| Message-ID | <4f168f75$0$29987$c3e8da3$5496439d@news.astraweb.com> |
| In reply to | #19077 |
On Wed, 18 Jan 2012 14:44:37 +0530, Mac Smith wrote: > Hi, > > I am using subprocess.Popen to start a movie ripping command > HandBrakeCLI. My server is 64bit ubuntu server and has 8 cores. When the > command starts it uses all 8 cores upto 80%-100% and works fine, but > after 270 seconds the cpu usage of all the cores drops to 0% - 1%. I > tried this many time this happens exactly after 270 seconds. Is there > some predefined timeout?? I think you have misunderstood subprocess.Popen. It launches the new process (HandBrakeCLI) then what happens in that new process is independent of Python and Popen. How are you calling HandBrakeCLI? Is it ripping directly from a device or file, or is it reading from stdin? If reading from stdin, possibly it is waiting for more data from you. Or perhaps it has simply finished ripping and there's nothing else for it to do and the process ends. -- Steven
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web