Python Forum
Subprocess.send_signal, wait until completion
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Subprocess.send_signal, wait until completion
#2
You can use process.wait(

wait()

Or check_output or check_call which all wait for the return code depending on what you want to do and the version of python.

time.sleep(0.5)
proc.send_signal(signal.SIGUSR1)
process.wait()
Reply


Messages In This Thread
RE: Subprocess.send_signal, wait until completion - by maffaz - Jun-28-2018, 07:19 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Wait til a date and time KatManDEW 2 1,474 Mar-11-2022, 08:05 PM
Last Post: KatManDEW
  wait for the first of these events Skaperen 4 2,045 Mar-07-2022, 08:46 PM
Last Post: Gribouillis
  how to do a two-way wait Skaperen 2 1,312 Mar-04-2022, 02:31 AM
Last Post: Skaperen
  Run an app in a standalone terminal and wait until it's closed glestwid 2 2,579 Aug-30-2020, 08:14 AM
Last Post: glestwid
  python os.popen is not working for wait method elenaflorence87 0 2,036 Jul-22-2020, 12:56 PM
Last Post: elenaflorence87
  Wait for command within a process bRitch022 1 3,314 Jul-15-2020, 07:03 PM
Last Post: bRitch022
  Multiprocessing Module Running An Infinite Child Process Even After Completion hsikora 0 3,933 Dec-19-2018, 08:01 AM
Last Post: hsikora
  How do you wait for a daemon to reach a certain state with subprocess.popen()? phalse 3 7,947 Jul-08-2017, 12:32 PM
Last Post: DeaD_EyE
  just a trial. Please wait 5 minutes before deleting this thread sylas 2 3,489 Jun-06-2017, 03:34 PM
Last Post: snippsat
  Code completion for namedtupe-based object in PyCharm volcano63 4 6,023 May-01-2017, 09:18 PM
Last Post: volcano63

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020