Amanda-2.6.1

Amanda::Process


NAME

Amanda::Process -- interface to process


SYNOPSIS

  use Amanda::Process;
  Amanda::Process::load_ps_table();
  Amanda::Process::scan_log($logfile);
  Amanda::Process::add_child();
  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);


API STATUS

Stable


INTERFACE

This module provides an object-oriented interface to track process used by amanda.

my $Amanda_process = Amanda::Process->new($verbose);

load_ps_table
  $Amanda_process->load_ps_table();

Load a table of all processes in the system.

scan_log
  $Amanda_process->scan_log($logfile);

Parse all 'pid' and 'pid-done' lines of the logfile.

add_child
  $Amanda_process->add_child();

Add all children of already known amanda processes.

set_master
  $Amanda_process->set_master($pname, $pid);

Set $Amanda_process->{master_pname} and $Amanda_process->{master_pid}.

kill_process
  $Amanda_process->kill_process($signal);

Send the $signal to all amanda processes.

process_running
  my $count = $Amanda_process->process_running();

Return the number of amanda process alive.

count_process
  my $count = $Amanda_process->count_process();

Return the number of amanda process in the table.

process_alive
  my $alive = Amanda::Process::process_alive($pid, $pname);

Return 0 if the process is not alive. Return 1 if the process is still alive.


ABOUT THIS PAGE

This page was automatically generated Fri Feb 5 19:41:21 2010 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.


Amanda-2.6.1