Jerome Quelin > App-Magpie > App::Magpie::Role::RunningCommand

Download:
App-Magpie-2.007.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 2.007   Source  

NAME ^

App::Magpie::Role::RunningCommand - sthg that can run an external command

VERSION ^

version 2.007

SYNOPSIS ^

    with 'App::Magpie::Role::RunningCommand';
    $self->run_command( "sleep 10" );

DESCRIPTION ^

This role is meant to provide easy way of running a command for classes consuming it. Standard output & standard errors are redirected depending on the log level.

METHODS ^

run_command

    $obj->run_command( $cmd );

Run a command, spicing some debug comments here and there. Die if the command encountered a problem.

AUTHOR ^

Jerome Quelin <jquelin@gmail.com>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2011 by Jerome Quelin.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: