I am writing an article on executing a “ping” from filemaker, and then returning the results into a field.
On Windows, this is easily executed by using “send event” & entering Cmd /c ping 192.168.1.1 >c:\ipinfo.txt
This saves the result as a text document entitlted “ipinfo.txt” which I import into FileMaker.
I need to be able to do this Mac OS X. Does anyone have any experience with this?
In Kindness
Stephen K Knight
Model: eMac
Browser: Internet Explorer 6.0
Operating System: Mac OS X (10.4)
i’m not a FileMaker guru by any means, but i have it on this machine.
i’m guessing you want to do this from the ‘scripts’ portion of Filemaker. when i poke around in there i do see an option under, ‘Miscellaneous’, to ‘Perform AppleScript’. if all you want to do is what you did in DOS, then this would be the command:
do shell script "/sbin/ping 192.168.1.1 /ipinfo.txt"
you’ll have to test this out, but that will put the document at the root level of your HD. if you want to put it somewhere else, give it a POSIX path, like “/here/is/the/path/ipinfo.txt”.