Dear Monks,
I am writing a script, which needs to lookup IP addresses of Bonjour services. The lookups are done using mDNS command: mDNS -L "Service Name" _service._tcp domain. This command outputs to stdout few lines of information, which I am looking for and would like to store it as a string variable. Unfortunately when started from shell, this command does not quit by itself. It continues running, watching for new services that are not going to appear. How to terminate this command from perl script when it stops outputting new lines and just sits waiting for events?
Thank you fro your wise advices,
Wen
In reply to How to read from shell command and terminate it afterwards? by Wen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |