Proc::JobQueue::Move - move files from one place to another
use Proc::JobQueue::BackgroundQueue; use aliased 'Proc::JobQueue::Command'; my $queue = new Proc::JobQueue::BackgroundQueue; use aliased 'Proc::JobQueue::Move'; my $job = Move->new($opts, $config, $from_file, $to_file, $to_host); $queue->add($job); $queue->finish;
This is a subclass of Proc::JobQueue::Job. In the background, move a file to a new location (possibly on a new host).
scp will be used to move files to remote locations. The trust relationships must already exist. Files will be compressed in transit if $config-{compress_network_copies}> is true.
scp
$config-
Only one copy job per destination host is allowed to run simultaneously.
If the $to_host matches Sys::Hostname::hostname then the mv command will be used instead of scp.
$to_host
Sys::Hostname::hostname
mv
Proc::JobQueue Proc::JobQueue::Job Proc::JobQueue::BackgroundQueue
This package may be used and redistributed under the terms of either the Artistic 2.0 or LGPL 2.1 license.
To install Proc::JobQueue, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Proc::JobQueue
CPAN shell
perl -MCPAN -e shell install Proc::JobQueue
For more information on module installation, please visit the detailed CPAN module installation guide.