Ī lot more went into this than initially expected, but that is always the case when it comes to bash. I commented most of the material, and the source can also be found at. …and by a minute, I meant more like an hour. Then echo "No computers are sharing their libraries" # for some reason cut wasnt respecting the spaces, but in another var it worked fine # takes the last library in the list and formats it for dns-sd -L # grab the process identifiers for the dns-sd process WHICH NEVER STOPS # grabs browseable list of bonjour shared libraries # create semi-random filenames for writing and reading to Well, with this approach, we can actually script the entire event into one bash script, without too much work.Ī minute of checking the man pages for sed and cut yields: How is this better than other solutions like Flame or Bonjour Browser? (spaces and newlines are escaped in the shell, but you see all the slashes) This is a slightly edited output for readability. With these commands, it gives you the hostname, which you can always resolve by pinging it. Lookup local’s Library_PW._daap._tcp.local Local:~ local$ dns-sd -L "local’s Library_PW" _daap._tcp Timestamp A/R Flags if Domain Service Type Instance Nameĩ:31:12.844 Add 3 4 local. This command checks for bonjour iTunes shared libraries (daap protocol, tcp. It also has a great API for accessing various information about local DNS information, and setting local DNS advertising quite easily. Here is a quick little guide on getting that done.ĭns-sd is a service discovery application that can make tracking down users sharing various information quite easily. Have you ever had an issue with someone sharing an iTunes library, and you want to quickly track down the IP of the offending user?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |