• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Shared folders, WAS Checking for logged on guests
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Shared folders, WAS Checking for logged on guests
      • From: Graff <email@hidden>
    • Re: Shared folders, WAS Checking for logged on guests
      • From: Dave Balderstone <email@hidden>
  • Prev by Date: Re: Launch application in the backgroung
  • Next by Date: File sharing quits by itself
  • Previous by thread: Re: Launch application in the backgroung
  • Next by thread: Re: Shared folders, WAS Checking for logged on guests
  • Index(es):
    • Date
    • Thread