How to copy a file from one machine to another machine

Tim Golden tim.golden at viacom-outdoor.co.uk
Wed Sep 21 06:42:56 EDT 2005


[Steve Holden]

| Nico Grubert wrote:
| > Hi there,
| > 
| > I would like to copy a file from one machine (machine #01) 
| to another (machine #02).
| > 
| > machine #01: Suse Linux 9.2, Samba 3, Python 2.3.5
| > machine #02: Windows Machine, Destination Dir: <Share>\temp\files\

| One possibility would be to run Samba (www.smaba.org) on the Linux 
| machine so it offered a share to the Windows machine. Then you could 
| just write to a UNC path (\\server\path\to\file) from Windows 
| and have the file appear on the Linux machine.

Quite true. The only things are that: he's already running Samba
on the Linux box (see machine #01 above); and he wants to copy *onto* 
the Windows box (machine #02 above). That said, I entirely agree that
it's more of an O/S thing than a language thing and there are no few
possible solutions. (Of course, you could implement a Python-only
solution using, say, Pyro or some home-grown SocketServer, but there
would be an element of wheel-reinvention involved).

TJG

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________



More information about the Python-list mailing list