I want to check whether my connection to "the Internet" has dropped (eg dial-up has disconnected after x hours), so that I can re-connect. So I want to write a check to see whether I have connectivity...
I see from the manual that, as you say, Lutz, I need to run as superuser to use this command, although I can do (exec "ping") instead. (Manual confuses with talk of net-peek, by the way...)
~> ls -l /sbin/ping
-r-sr-xr-x 1 root wheel 33264 Mar 20 2005 /sbin/ping
~>
The 's' in '-r-sr-xr-x' indicates the super-user mode. The programs also must be owned by a super user or root. Then you don't need 'sudo' to start newLISP. You could try:
As newlisp was installed in /usr/bin as 'root', setting the 's' flag should be enough. Now you can start newLISP as normal and 'net-ping' will work right away.
Lutz
ps: I updated the HTML and PDF versions of the manual to rev-3 correcting the 'net-ping' documentation (net-peek -> net-ping in the syntax description).