4.0.0alpha.svn.7719
Amanda modules list
List of All Modules
All Amanda Releases

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_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);

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_process
  $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.

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 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.


4.0.0alpha.svn.7719