0

How can I connect an input to a command with the subprocess library?

How can I connect an input to a command with the subprocess library? For example: ping: İmport subprocess İmport socket X = input("enter your URL : ") Y = subprocess.getoutput("ping") Print(x,y) Please correct my problem in this code⁊❀⁩

8th Oct 2021, 10:48 AM
Aydin
Aydin - avatar
1 Answer
0
Can you please elaborate your question more.
10th Oct 2021, 4:36 PM
Hemath Kumar
Hemath Kumar - avatar