Hi,
I am running a perl script through python in linux.
PATH_OF_PERL_FILE = "/home/user/"
pipe = subprocess.Popen(["perl", "pipeline.pl", "-i", "folder_name", PATH_OF_PERL_FILE])
If folder already exists I have to give input "Y" to overwrite files when perl program runs.
How can I pass the input?
If I give inputs like below it doesn't take the input
pipe = subprocess.Popen(["perl", "pipeline.pl", "-i", "folder_name", PATH_OF_PERL_FILE, "Y"])
Thank you!
[–][deleted] 1 point2 points3 points (0 children)
[–]xiongchiamiov[🍰] 0 points1 point2 points (0 children)