DPeaco
8 months agoModerator
Getting client version via nbhostmgmt command line
Greetings,
I've written a script to pull the host list from the activity monitor, put that host list output into a file and then I run nbhostmgmt against that host list output file. My issue is when nbhostmgmt is looking for a host that doesn't have a client installed or no longer exists, the command appears to hang and I have to kill the process. Is there a way to wrap nbhostmgmt in a timer wrapper that when it doesn't respond back in 15 seconds, it will kill that nbhostmgmt process and move on to the next host in the list?
Ideas? Tips? Pointers?