On 6/27/07, Chas Owens <[EMAIL PROTECTED]> wrote:
On 6/27/07, Rick <[EMAIL PROTECTED]> wrote:
> Ok so the boss wants me to create two scripts in perl and I don't even
> know where to begin.
>
> One is to copy a log file to a backup server every hour.
>
> And the second is to restore the backup from one server from the
> previous night to the backup server every morning.
>
> Any ideas on where to start would be greatly appreciated.
snip

A lot depends on your knowledge of Perl.  Given that you have no idea
where to begin I assume you know nothing.  Run out and buy Learning
Perl.  Read the first few chapters and then take a look at Net::FTP*
or Net::SCP*.  If you still have questions how things work then post
them with the code you are trying to make work to the list.

* http://search.cpan.org/~gbarr/libnet-1.21/Net/FTP.pm
* http://search.cpan.org/~ivan/Net-SCP-0.07/SCP.pm



Specifically chapters 2 Scalar Data, 4 Subroutines, 6 I/O Basics, and
11 Filehandles and File Tests.

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to