Python Forum
Linux command output not working
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linux command output not working
#3
thanks DeadEye

to get the output could I still do vv

  
  time.sleep(10)
  stdout,stderr = process.communicate()
  process.terminate()
  return stdout,stderr
this way I can still get the output from process.communicate() and return stdout and stderr respective outputs and also terminate the process
Reply


Messages In This Thread
Linux command output not working - by adam2020 - Mar-22-2019, 08:43 PM
RE: Linux command output not working - by DeaD_EyE - Mar-23-2019, 05:14 AM
RE: Linux command output not working - by adam2020 - Mar-23-2019, 01:20 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Is possible to run the python command to call python script on linux? cuten222 6 731 Jan-30-2024, 09:05 PM
Last Post: DeaD_EyE
  Python VS Code: using print command twice but not getting output from terminal kdx264 4 1,086 Jan-16-2023, 07:38 PM
Last Post: Skaperen
  Os command output in variable shows wrong value paulo79 2 1,510 Apr-09-2022, 03:48 PM
Last Post: ndc85430
  How to use a variable in linux command in python code? ilknurg 2 1,603 Mar-14-2022, 07:21 AM
Last Post: ndc85430
  use subprocess on linux\pi wwith a "grep " command korenron 2 8,094 Oct-19-2021, 10:52 AM
Last Post: DeaD_EyE
  Command output to Variable ironclaw 1 1,786 Aug-26-2021, 06:55 PM
Last Post: bowlofred
  How to input & output parameters from command line argument shantanu97 1 2,567 Apr-13-2021, 02:12 PM
Last Post: Larz60+
  how to run linux command with multi pipes by python !! evilcode1 2 6,369 Jan-25-2021, 11:19 AM
Last Post: DeaD_EyE
  Print output not working xninhox 7 4,053 Jan-16-2021, 09:42 AM
Last Post: xninhox
  Subprocess command working for one cmd and for cmd one not wrking PythonBeginner_2020 0 4,141 Mar-25-2020, 01:52 PM
Last Post: PythonBeginner_2020

Forum Jump:

User Panel Messages

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