What does python pty.spawn library do actually? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What does python pty.spawn library do actually?

while searching on google suddenly I found this python -c 'import pty; pty.spawn("/bin/sh")' what is it! and what does it do? Thanks In Advanced ☺

10th Apr 2017, 8:35 AM
Mr Mango Sec xD
Mr Mango Sec xD - avatar
2 Answers
+ 3
You seem to know how to use google. Use it for broad answers and explanations. Later, if you cant find a spesific description/solution about something, feel free to ask a REAL question 😊
10th Apr 2017, 12:27 PM
Barış Can Ceylan
Barış Can Ceylan - avatar
+ 3
Ok 😃 Thanks
11th Apr 2017, 3:29 AM
Mr Mango Sec xD
Mr Mango Sec xD - avatar