Shared folders, WAS Checking for logged on guests
Shared folders, WAS Checking for logged on guests
- Subject: Shared folders, WAS Checking for logged on guests
- From: Larry McMunn <email@hidden>
- Date: Fri, 2 Jan 2004 16:08:53 -0500
Dave and Craig,
Thanks for your help on finding out about Shared Folder Users.
I have come up with the following:
------------------
set theUsers to do shell script "netstat -na | grep 548"
--with Satimage for regexp
set theUsers to change "^.+LISTEN$\\r?" into "" in theUsers with regexp
set theUsers to change "[[:blank:]]+ESTABLISHED$" into "" in theUsers with regexp
set theUsers to change "^.+[[:blank:]]([^[:blank:]]+)$" into "\\1" in theUsers with regexp
set theUsers to change "\\.548$" into "" in theUsers with regexp
if character -1 of theUsers = return then set theUsers to text 1 thru -2 of theUsers
set theUsers to paragraphs of theUsers
------------------
This shows the addresses of guests on my machine as well as any volumes that I have mounted, but that's OK, I can simply delete the ones for the volumes that I may mounted.
--
Happy Automation! :-)
Larry McMunn
President
McMunn Associates, Inc.
Specialists in automated Data Visualization through Apple products
Collingswood, NJ
(856) 858-3440
---------------------------------------------------------------
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.