Category : subprocess

I am trying to automate uploading files using subprocess, when I type the command for uploading files it first requests a password, calculates the cost of uploading and requests confirmation for the transaction. import subprocess upload = subprocess.Popen("arkb deploy " + r"C:myFile", stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True) upload.stdin.write(b"myPasswordn") upload.stdin.write(b"yn") When I run this code, it succesfully ..

Read more

I tried this solution answer to solve my problem but when using the solution I got this error: Traceback (most recent call last): File "version_build.py", line 125, in <module> if __name__==’__main__’: main() File "version_build.py", line 113, in main change = p4change(p4) File "version_build.py", line 90, in p4change change = p.communicate(changespec)[0] File "C:Python36Libsubprocess.py", line 843, in ..

Read more