FreeBSD.software
Home/devel/p5-IPC-ShellCmd

p5-IPC-ShellCmd

0.005_1devel

Run a command with a given environment and capture output

IPC::ShellCmd comes from the nth time I've had to implement a select loop and wanted appropriate sudo/su privilege magic, environment variables that are set in the child, working directories set etc. It aims to provide a reasonable interface for setting up command execution environment (working directory, environment variables, stdin, stdout and stderr redirection if necessary), but allowing for ssh and sudo and magicking in the appropriate shell quoting. It tries to be flexible about how you might want to capture output, exit status and other such, but in such a way as it's hopefully easy to understand and make it work. Setup method calls are chain-able in a File::Find::Rule kind of a way.

$pkg install p5-IPC-ShellCmd
metacpan.org/release/IPC-ShellCmd
Origin
devel/p5-IPC-ShellCmd
Size
54.9KiB
License
ART10, GPLv1+
Maintainer
sunpoet@FreeBSD.org
Dependencies
3 packages
Required by
1 packages

Dependencies (3)

Required By (1)