Amanda::Process -- interface to process
use Amanda::Process;
Amanda::Process::load_ps_table();
Amanda::Process::scan_log($logfile);
Amanda::Process::add_child();
Amanda::Process::set_master_process(@pname);
Amanda::Process::set_master($pname, $pid);
Amanda::Process::kill_process($signal);
my $count = Amanda::Process::process_running();
my $count = Amanda::Process::count_process();
my $alive = Amanda::Process::process_alive($pid, $pname);
This module provides an object-oriented interface to track process used by amanda.
my $Amanda_process = Amanda::Process->new($verbose);
$Amanda_process->load_ps_table();
Load a table of all processes in the system.
$Amanda_process->scan_log($logfile);
Parse all 'pid' and 'pid-done' lines of the logfile.
$Amanda_process->add_child();
Add all children of already known amanda processes.
$Amanda_process->set_master_process($arg, @pname);
Search the process table to find a process in @pname and make it the master, $arg must be an argument of the process.
$Amanda_process->set_master($pname, $pid);
Set $Amanda_process->{master_pname} and $Amanda_process->{master_pid}.
$Amanda_process->kill_process($signal);
Send the $signal to all amanda processes.
my $count = $Amanda_process->process_running();
Return the number of amanda process alive.
my $count = $Amanda_process->count_process();
Return the number of amanda process in the table.
my $alive = Amanda::Process::process_alive($pid, $pname);
Return 0 if the process is not alive. Return 1 if the process is still alive.
This page was automatically generated Tue Mar 19 07:08:16 2019 from the Amanda source tree, and documents the most recent development version of Amanda. For documentation specific to the version of Amanda on your system, use the 'perldoc' command.