Ping Command to a Device Hangs Up
Yeruham H.
Petah Tikva, Petah Tikva

Apr 30, 2014
4 Posts

Ping command to a device hangs up

Hello,

I use ATEasy v8. and use the StdIOProcess driver to send ping to remove device.

Using this line from program.
        StdIOProcess Execute("cmd.exe", "", "Ping "+strNE_IP_Address)

ATEasy hanged at this line:
    m_sStdOutput=m_obProcess.StandardOutput.ReadToEnd()    ! process must exit, otherwise deadlock

Anybody can help? Thanks

Y.

Yeruham H.
Petah Tikva, Petah Tikva

Apr 30, 2014
4 Posts

Re: Ping command to a device hangs up

Ok I have found.
Just forgot to add "exit" at the end of command.

The right command is:
        StdIOProcess Execute("cmd.exe", "", "Ping "+strNE_IP_Address+"\r\nExit\r\n")

It's works!

Thanks.

Y.



Please Note
You need to have a M@GIC account to participate in the Forums.
Not yet registered on our website? Click here to register today!

All content, information and opinions presented on the Marvin Test Solutions User Forums are those of the authors of the posts and messages and not Marvin Test Solutions'. All attachments and files are downloaded at your own risk. [Read More]