It looks like you're new here. If you want to get involved, click one of these buttons!
#include <stdlib.h>
int main(){
system(\"uname\");
return 0;
}
i voted yes, the only situation i could think of it being unsafe, was if uname is foreign software and is executed at the same permission level as the safe program, but that wouldn't make any sense because uname must be installed for it to be invoked like that. i guess there's something more to system() i don't know, or some semantics going on here :P
#!/usr/bin/python
import os
ip = raw_input(\"Ping IP: \")
os.system(\"ping \" + ip)