Tapper::Base - Tapper - Common functions for all Tapper classes
package Tapper::Some::Class; use Moose; extends 'Tapper::Base';
Kill the process whose id is in the given pidfile.
@param string - pid file name
@return success - 0 @return error - error string
Run one instance of the given command. Kill previous incarnations if necessary.
@param hash ref - {command => command to execute, pid_file => pid file containing the ID of last incarnation, argv => array ref containg (optional) arguments}
Checks whether a given directory exists and creates it if not.
@param string - directory to create
Execute a given command. Make sure the command is logged if requested and none of its output pollutes the console. In scalar context the function returns 0 for success and the output of the command on error. In array context the function always return a list containing the return value of the command and the output of the command.
@param string - command
@return success - 0 @return error - error string @returnlist success - (0, output) @returnlist error - (return value of command, output)
AMD OSRC Tapper Team <tapper@amd64.org>
This software is Copyright (c) 2012 by Advanced Micro Devices, Inc..
This is free software, licensed under:
The (two-clause) FreeBSD License
To install Tapper::Base, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Tapper::Base
CPAN shell
perl -MCPAN -e shell install Tapper::Base
For more information on module installation, please visit the detailed CPAN module installation guide.