Re: how does file gets send to remote machine using perl
[email protected] ("Chas. Owens")
| Newsgroups | perl.beginners |
|---|---|
| Message-ID | <[email protected]> |
On Thu, May 29, 2008 at 8:21 PM, Ken Foskey <[email protected]> wrote: > On Thu, 2008-05-29 at 19:46 -0400, Richard Lee wrote: > >> Hi, >> >> Someone wrote a perl script which manipulate a file and sent to number >> of remote system. >> I ported that exact script to my local machine but I don't see anything >> going out. >> Peeking into the script, I see no special module being used and no >> ftp/sftp/scp or anything like that being used. >> >> Does perl have the ability to transfer file? >> I guess I need to understand networking in general when it comes to >> programming(i have no idea). >> >> Any idea or pointer would be greatly appreciated. >> >> thanks.(cannot cp and paste work script here since it's company's policy) > > > No Perl cannot send a file. > > Based upon NO information. Look for 'scp' or 'ftp' commands imbedded in > the application. It is possible to write your own data transfer program using sockets, so yes, Perl can send files to remote machines. If it couldn't then Net::FTP wouldn't work. On the other hand, it is much more likely that either the script uses one of the Net::* modules or an external program to send the file. -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read.