0

Why i have this output?

If I write ###START### import os test = os.system("help") #or random things in the " print(test) ###END### the output is always "-1"?

10th Apr 2018, 7:59 PM
Cyberdade
Cyberdade - avatar
3 Respostas
0
I tried with existing command like cd or mkdir but it's -1
10th Apr 2018, 8:14 PM
Cyberdade
Cyberdade - avatar
0
I think this for security reasons. If this function work, then it would be possible to execute any progrom on the sololern server. I think they hooked the function (and many others) to return -1 for any input parameter.
10th Apr 2018, 8:40 PM
Manuel Maier
Manuel Maier - avatar
0
maybe
10th Apr 2018, 8:41 PM
Cyberdade
Cyberdade - avatar