Calling System Commands from within your program
quick question. how do i call system commands from within my programs.
for example. if i want it to run ping. like ping 127.0.0.1 from within my own program how would i go about doing that?
and also if i wanted my program to call a system command with a parameter that is from my prog. like..
if i run my compiled prog and ran it like so.
myprog 67.84.xxx.xxx
i would want it to call the ping command with the parameter 67.84.xxx.xxx
so it would essentially run ping 67.84.xxx.xxx
and return the result on my screen.
how would i do that?