[fpc-pascal] Ping problems - OS/X
Reinier Olislagers
reinierolislagers at gmail.com
Wed May 21 17:02:15 CEST 2014
On 21/05/2014 16:36, Peter Brooks wrote:
> Unfortunately, I've tried both the full path and just the name -
> apparently TProcess is supposed to look in the path - and it does
> work. When it is called, it returns a '0' indicating successful
> completion.
/disclaimer: haven't looked at your code/
voicechecker & fpcup contains a wrapper around TProcess[1] that lets you
easily get output. See the convenience functions ExecuteCommand etc.
An example of use: pinging a host on OSX, can be found in voicechecker's
pingtest.pas [2]
It works well for voicechecker, fpcup and some other projects
[1]
https://bitbucket.org/reiniero/voicechecker/src/01d4337c5ed948aeafe57d892d33db98c0a9f742/processutils.pas?at=default
[2]
https://bitbucket.org/reiniero/voicechecker/src/01d4337c5ed948aeafe57d892d33db98c0a9f742/pingtest.pas?at=default
More information about the fpc-pascal
mailing list