Skip to navigation
Calling a binary program with python in linux
03.07.17
example: 1x ptyhon script 1x binary gwp (password generator) import os,sys import subprocess p = subprocess.Popen('./gpw 1 13', shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) for line in p.stdout.readlines(): print line, retval = p.wait()
https://docs.python.org/3/library/subprocess.html
Reply
Anonymous
Information Epoch 1714113998
Think parallel.
Home
Notebook
Contact us