G
G
GeekFromUa2016-02-22 11:32:42
Python
GeekFromUa, 2016-02-22 11:32:42

How does subprocess work in python?

I'm trying to record an audio stream, I need to implement splitting files for example by 30 minutes, I tried to do it using subprocess

subprocess.call("wget.download(url)", timeout=1800)

The download goes on but does not interrupt after the specified time. Tell me what I'm doing wrong. Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2016-02-22
@dimonchik2013

timeout is the waiting time to see if a child process will appear, not the time
to kill - see, for example, here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question