$portfree » History » Version 2
Per Amundsen, 06/12/2016 06:18 AM
| 1 | 1 | Per Amundsen | _Added in 1.9.0_ |
|---|---|---|---|
| 2 | |||
| 3 | *$portfree(N,[ipaddress])* |
||
| 4 | |||
| 5 | Returns [[$true]] if the specified port number is not in use, otherwise [[$false]]. |
||
| 6 | |||
| 7 | *Parameters* |
||
| 8 | |||
| 9 | N - The port number to check. |
||
| 10 | 2 | Per Amundsen | [ipaddress] - If specified, only the interface with that IP address is checked for used ports, otherwise all active interfaces are checked. An adapter name can also be used instead of an IP address. |
| 11 | 1 | Per Amundsen | |
| 12 | *Example* |
||
| 13 | |||
| 14 | <pre> |
||
| 15 | ; Check if port 4242 is free. |
||
| 16 | //echo -ag Port 4242 is $iif($portfree(4242), open, not open) |
||
| 17 | </pre> |