I think I need to add some supporting information. I work at Motorola and when I use the Chooser, I see 700+ Appletalk zones. I am used to going to the Chooser and selecting the zone I want, selecting which file server/machine I want, typing the user name and password and finaling selecting the volume that I want to pop up on my desktop. There is a folder on another machine ( a IIfx) that has 1900+ files in it. Over appletalk it takes 10 minutes to open the folder. I know which file I want. I want to write a perl script to copy this particular file by opening and closing this particular volume. I am not familiar with network issues or with packing and unpacking. It is just something I have never had to do, yet. I have downloaded the Inside Macintosh book for networking and I plan on looking more at the man pages for perl. I tried recording the Chooser operation, but nothing recorded. Do I need to seal with server/client architecture? Or is the fact that file sharing is setup enough? Richard. PS. I'm not a programmer. I am just trying to imitate one. > You wrote to the MacPerl list 8 Jun 1998 08:47:11 -0700 (PDT): > > >I know that most of my problems are relating to a lack of knowledge of > >sockets, but after reading everything I could about Appletalk and > >sockets, I still feel a bit lost. > > > >I want to transfer a file from one computer to another. Here is the > >info, changed to protect myself from lawsuits. > > > >MacPerl running computer A > >File resides on computer B > >Transfer file from B -> A. > > > >Computer A: > >Appletalk zone = Zone 1 > >Fileserver = toad > >Volume = Volume 1 > > > >Computer B: > >Appletalk zone = Zone 2 > >FileServer = bug > >Volume = Volume 2 > >User = Me > >Password = junk > >File = HD:Desktop Folder:temp > > > >I took a gander at the HTML MacPerl book, but couldn't get the example to > >work. Also I couldn't see where to supply the password. I really want to > >hard code this so I didn't try the Choose method. > > Some time ago I tinkered with the attached files and I tried them again > yesterday to see if they still worked. They seem to. > > You will see the packed adddress takes three parameters, and 'object' a > 'type' and a 'zone'. So far as I can tell, provided the 'object' and the > 'type' are the same for both server and client, the thing works. > > With my huge LAN (consisting of a PPC and a Powerbook) connection is > established if you just put an '*' for zone. I have seen somewhere else > that is the default value. > > What you do, is start the 'server' running first (on one machine) and it > just sits there listening and waiting for a 'client' (on the other machine) > to come on line. Then start the 'client' and stuff should then transfer > from the 'server' to the 'client'. > > Also in the folder is an insert written by Chris Nandor for Socket.pm. > However my view is that there is no advantage to be had in using Socket.pm > and it is simpler not to. > > Having said all that, I never use MacPerl for the purpose but always use > AppleShare, which works beautifully. However you may have some other reason > for wanting to do it with MacPerl of course. > > Hope this is some help, > > Alan Fry > > > ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch