The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

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

VERSION

version 1.122610

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.