Re: How to find network computers, use Rendezvous?
Re: How to find network computers, use Rendezvous?
- Subject: Re: How to find network computers, use Rendezvous?
- From: Gnarlodious <email@hidden>
- Date: Fri, 15 Oct 2004 06:32:46 -0600
Title: Re: How to find network computers, use Rendezvous?
Hmmm... I didn't receive this post. Wonder why?
The task is exacerbated by the fact that routers are not scriptable.
This script needs to be saved as a Stay Open Application:
-- Script to log and report Airport Extreme users
on run
set logFile to ((path to startup disk) & "private:tmp:TCP.txt" as string)
do shell script "osascript -e 'tell application \"Terminal\" to do script \"" & ("sudo tcpdump -i en1 port 80 >> " & the POSIX path of logFile) & "\"'"
end run
on reopen
set logFile to ((path to startup disk) & "private:tmp:TCP.txt" as string)
set logPOSIX to the quoted form of the POSIX path of logFile
display dialog (do shell script "perl -lne'@h{/\\b10\\.\\d+\\.\\d+\\.\\d+/g}=()}{print for keys%h' " & logPOSIX)
end reopen
-- Gnarlie
Entity jj spoke thus:
> This works fine here if you need only a list of IP numbers:
>
> set IPs to paragraphs of (do shell script "arp -a | awk '{print $2}' | tr -d
> '()'")
>
>
> jj
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden