Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Using StartProcess with ping
Using StartProcess with ping [message #15620] |
Thu, 01 May 2008 16:58  |
captainc
Messages: 278 Registered: December 2006 Location: New Jersey, USA
|
Experienced Member |
|
|
I'm trying to use StartProcess with the ping command and not having any luck.
int Ping(){
String cmdline = "ping -n 3 192.168.0.1";
One<SlaveProcess> sp = StartProcess(cmdline);
while(sp->IsRunning()){
Sleep(200);
}
return sp->GetExitCode();
}
But it doesn't seem to run the ping command. Interestingly, it always returns true for the sp->IsRunning() call.
Any suggestions?
|
|
|
Goto Forum:
Current Time: Wed Aug 27 00:20:48 CEST 2025
Total time taken to generate the page: 0.05117 seconds
|