----- Original Message -----
From: "Danny Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 23, 2001 5:24 PM
Subject: Copying from unix to nt


> Does anyone know how I can use perl to copy files from a unix
machine to an NT?
>
> Thanks
> Danny Wong
It depends on what you are running on each OS I guess. If you
have Samba on unix, you can just use File::Copy, or `cp`. If you
have NFS server running on NT, you can do the File::Copy. If you
don't have either, you can use the Net::FTP module, and move the
files across that way. There are many examples of file
mirroring/sunchronization using Net::FTP. Just grab one and
modify it to suit your purposes. If you want to preserve
date/time/ownership, there's a little more work to do. None of
it is particularly difficult.

ego
Edward G. Orton, GWN Consultants Inc.
Phone: 613-764-3186, Fax: 613-764-1721
email: [EMAIL PROTECTED]

_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin

Reply via email to