Copy files from one machine to another machine

2010-03-03 Thread Irfan Sayed
Hi all, I need to copy files from one machine to another machine. I need to use Net::SCP module . Can you please give/help me small Perl snippet which will copy the files Please advice Regards Irfan.

Re: Copy files from one machine to another machine

2010-03-03 Thread Jeff Peng
On Wed, Mar 3, 2010 at 8:40 PM, Irfan Sayed irfan_sayed2...@yahoo.com wrote: Hi all, I need to copy files from one machine to another machine. I need to use Net::SCP module . Can you please give/help me small Perl snippet which will copy the files I was thinking this module's document has

Re: Simple-Yet Trivial Problem - Copy files from directory

2006-08-20 Thread I BioKid
Dear All, Thanks for all your help - I have done it using a mix of the inputs from you guys - Thanks a lot !! -- i biokid

Simple-Yet Trivial Problem - Copy files from directory

2006-08-19 Thread I BioKid
I have a simple - yet trivial problem - I 2000 directory at /home2/foo/foodir/ . I need to copy all files with extension *.atm and *.ali to another directory called temp (say /home2/foo/foodir/temp ) After that I need to run a program in each of this directory - (say joy *.ali ) If am suppose

Re: Simple-Yet Trivial Problem - Copy files from directory

2006-08-19 Thread Xavier Mas i Ramón
A Dissabte 19 Agost 2006 09:19, I BioKid va escriure: I have a simple - yet trivial problem - I 2000 directory at /home2/foo/foodir/ . I need to copy all files with extension *.atm and *.ali to another directory called temp (say /home2/foo/foodir/temp ) After that I need to run a program in

Re: Simple-Yet Trivial Problem - Copy files from directory

2006-08-19 Thread Tom Phoenix
On 8/19/06, I BioKid [EMAIL PROTECTED] wrote: @a=`cat list`; foreach $a(@a) { `mkdir $a`; You don't have to use the shell's mkdir (in backticks); you can use Perl's mkdir function, if you first use chomp() to get rid of the newlines. Could the newlines be causing other

Re: Simple-Yet Trivial Problem - Copy files from directory

2006-08-19 Thread Mumia W.
On 08/19/2006 02:19 AM, I BioKid wrote: I have a simple - yet trivial problem - I 2000 directory at /home2/foo/foodir/ . I need to copy all files with extension *.atm and *.ali to another directory called temp (say /home2/foo/foodir/temp ) After that I need to run a program in each of this

Re: Simple-Yet Trivial Problem - Copy files from directory

2006-08-19 Thread John W. Krahn
I BioKid wrote: I have a simple - yet trivial problem - I 2000 directory at /home2/foo/foodir/ . I need to copy all files with extension *.atm and *.ali to another directory called temp (say /home2/foo/foodir/temp ) After that I need to run a program in each of this directory - (say joy

copy files

2002-07-06 Thread T. B. Booher
I know that 'rename' moves files from one place to another, but how do you copy files in perl? I looked around and didn't see any other functions for it. Thanks, tim

Re: copy files

2002-07-06 Thread Felix Geerinckx
on Sat, 06 Jul 2002 12:37:39 GMT, T. B. Booher wrote: I know that 'rename' moves files from one place to another, but how do you copy files in perl? See perldoc File::Copy -- felix -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: copy files

2002-07-06 Thread zentara
On Sat, 6 Jul 2002 07:37:39 -0500, [EMAIL PROTECTED] (T. B. Booher) wrote: I know that 'rename' moves files from one place to another, but how do you copy files in perl? I looked around and didn't see any other functions for it. #!/usr/bin/perl use File::Copy; copy(file1,file2

Re: copy files

2002-07-06 Thread Patrick Dempster
On Saturday 06 July 2002 14:18, Felix Geerinckx wrote: on Sat, 06 Jul 2002 12:37:39 GMT, T. B. Booher wrote: I know that 'rename' moves files from one place to another, but how do you copy files in perl? See perldoc File::Copy Is my perl doc broken, or is there some environmental

copy files

2002-02-05 Thread Student of Perl
Hello whats the simple function to copy files? pls tell the syntax. -Jim -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: copy files

2002-02-05 Thread Jeff 'japhy' Pinyan
On Feb 5, Student of Perl said: whats the simple function to copy files? pls tell the syntax. perldoc File::Copy -- Jeff japhy Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/ ** Look for Regular

Re: Copy files from a location

2001-12-14 Thread Michael Fowler
On Thu, Dec 13, 2001 at 06:42:17AM -0600, Michael Pratt wrote: Does anyone know how to go and get a file (with wild cards too) and dump them to a specifed directory on a local machine from the internet. weather it be ftp or http protocol? If so can I get an example? You probably want

Copy files from a location

2001-12-13 Thread Michael Pratt
Does anyone know how to go and get a file (with wild cards too) and dump them to a specifed directory on a local machine from the internet. weather it be ftp or http protocol? If so can I get an example? Thanks for all your help! Mike

Re: Copy files from a location

2001-12-13 Thread John W. Krahn
Michael Pratt wrote: Does anyone know how to go and get a file (with wild cards too) and dump them to a specifed directory on a local machine from the internet. weather it be ftp or http protocol? If so can I get an example? #!/usr/bin/perl -w use strict; use Net::FTP; my $local_dir =