Re: network program for copying file from a remote machine

2009-02-26 Thread Gunnar Hjalmarsson
Anirban Adhikary wrote: Yogesh Sawant wrote: On Thu, Feb 26, 2009 at 1:47 PM, Anirban Adhikary < anirban.adhik...@gmail.com> wrote: I want to write a program which can copy files from remote machine ( like scp) using perl network programming.Is it possible to create such program? how about us

Re: network program for copying file from a remote machine

2009-02-26 Thread Anirban Adhikary
I am not able to use any module . On Thu, Feb 26, 2009 at 2:05 PM, Yogesh Sawant wrote: > On Thu, Feb 26, 2009 at 1:47 PM, Anirban Adhikary < > anirban.adhik...@gmail.com> wrote: > >> Dear list >> I want to write a program which can copy files from remote machine

Re: network program for copying file from a remote machine

2009-02-26 Thread Yogesh Sawant
On Thu, Feb 26, 2009 at 1:47 PM, Anirban Adhikary < anirban.adhik...@gmail.com> wrote: > Dear list > I want to write a program which can copy files from remote machine ( like > scp) using perl network programming.Is it possible to create such program? > how about using CPAN module Net::SCP - http

network program for copying file from a remote machine

2009-02-26 Thread Anirban Adhikary
Dear list I want to write a program which can copy files from remote machine ( like scp) using perl network programming.Is it possible to create such program? If yes then can you give me some examples or tutorials web site name from where I can proceed. Thanks & Regards Anirban Adhikary.

Re: Selectively copying file from one server to another

2005-02-09 Thread Chris Devers
On Wed, 9 Feb 2005, Nilay Puri, Noida wrote: > I need to write a script > 1. to copy files from A server to B server. > 2. after checking the non-existence of the files in 2 server. > > How to do it through perl script ? > > If I use ftp to copy files, is there any flag for mput whih will tel

Selectively copying file from one server to another

2005-02-09 Thread Nilay Puri, Noida
Hi All, I need to write a script 1. to copy files from A server to B server. 2. after checking the non-existence of the files in 2 server. How to do it through perl script ? If I use ftp to copy files, is there any flag for mput whih will tell me if the file already exists in B server. Like, it

Re: copying file

2001-07-30 Thread Brad
File::Copy does the opening/closing of files for you. You might be messing things up by doing an open/close around the copy operation (though I can't see why myself). Try just: -- #!/usr/bin/perl -w use strict; use File::Copy; copy("temp.htm", "lmi/aol.htm");

copying file

2001-07-30 Thread COLLINEAU Franck FTRD/DMI/TAM
Hi! I want to copy "temp.htm" to "aol.htm" Why doesn't this code work ? #!/usr/bin/perl -w open(TEMP, "+>temp.htm"); open(FICHIER,">lmi/aol.htm"); use File::Copy; copy("temp.htm","lmi/aol.htm") ; close FICHIER; close TEMP; Thanks Franck -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addit