Python Forum
Popen does not show part of the data
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Popen does not show part of the data
#5
Example using new run() and parameter capture_output=True.
I give me correct output,it's also better/safer to use a list then is shell=False(default).
import subprocess

out = subprocess.run(['git', 'log', '--oneline'], capture_output=True)
print(out.stdout.decode())
Reply


Messages In This Thread
Popen does not show part of the data - by Arkantr - Jan-31-2019, 08:29 PM
RE: Popen does not show part of the data - by snippsat - Feb-01-2019, 02:35 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  PIL Image im.show() no show! Pedroski55 2 1,017 Sep-12-2022, 10:19 PM
Last Post: Pedroski55
  PIL Image im.show() no show! Pedroski55 6 5,102 Feb-08-2022, 06:32 AM
Last Post: Pedroski55
  show and storage real temperature data Arduino in Python3 linkxxx 0 1,879 Aug-21-2019, 04:07 PM
Last Post: linkxxx
  subprocess.Popen for lively data reading? Skaperen 4 3,512 Jul-04-2018, 01:20 AM
Last Post: Skaperen
  Popen - How can I read data before CTRL+C command is issued maffaz 13 10,475 Jun-28-2018, 09:18 AM
Last Post: maffaz

Forum Jump:

User Panel Messages

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