IPC::Run::Simple 1.3
Sponsored Links
IPC::Run::Simple 1.3 Ranking & Summary
File size:
0.005 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
802
Date added:
2007-08-15
Publisher:
Steve Fink
IPC::Run::Simple 1.3 description
IPC::Run::Simple is a simple system() wrapper.
SYNOPSIS
# Run a command and check whether it failed
use IPC::Run::Simple;
run("echo Hello, O Cruel World")
or die "Command failed";
# Describe the failure
use IPC::Run::Simple qw($ERR);
run("echo Hello, O Cruel World")
or die "Command failed: $ERR";
# Use the :all tag instead of explicitly requesting $ERR
use IPC::Run::Simple qw(:all);
run("echo Hello, O Cruel World")
or die "Command failed: $ERR";
# Die with error message if command does not return 0
use IPC::Run::Simple qw(:Fatal);
run("echo Hello, O Cruel World");
# Allow other exit values without dying
use IPC::Run::Simple qw(:Fatal);
run(command => [ "echo", "Hello, O Cruel World!" ],
allowed => [ 1, 2, 5 ]);
This module is intended to be a very simple, straightforward wrapper around the system() call to make it behave more like other builtins.
run() will return a true value if the command was executed and return a successful status code, and false otherwise. The reason for the failure will be stored in the $IPC::Run::Simple::ERR variable (which is just $ERR if you import either $ERR or :all). The description of the reason was pulled almost directly from the system() documentation.
Optionally, you can import the :Fatal tag, which will cause run() to die() with an appropriate message if the command fails for any reason.
If you wish to allow nonzero exit values but still want to trap unexpected errors, you may use an expanded call syntax. Call run() with a set of key=>value pairs. The two implemented keys are command (an array reference containing the command to run) and allowed (an array reference of exit values that are allowed without causing run() to return false or throw an exception.)
SYNOPSIS
# Run a command and check whether it failed
use IPC::Run::Simple;
run("echo Hello, O Cruel World")
or die "Command failed";
# Describe the failure
use IPC::Run::Simple qw($ERR);
run("echo Hello, O Cruel World")
or die "Command failed: $ERR";
# Use the :all tag instead of explicitly requesting $ERR
use IPC::Run::Simple qw(:all);
run("echo Hello, O Cruel World")
or die "Command failed: $ERR";
# Die with error message if command does not return 0
use IPC::Run::Simple qw(:Fatal);
run("echo Hello, O Cruel World");
# Allow other exit values without dying
use IPC::Run::Simple qw(:Fatal);
run(command => [ "echo", "Hello, O Cruel World!" ],
allowed => [ 1, 2, 5 ]);
This module is intended to be a very simple, straightforward wrapper around the system() call to make it behave more like other builtins.
run() will return a true value if the command was executed and return a successful status code, and false otherwise. The reason for the failure will be stored in the $IPC::Run::Simple::ERR variable (which is just $ERR if you import either $ERR or :all). The description of the reason was pulled almost directly from the system() documentation.
Optionally, you can import the :Fatal tag, which will cause run() to die() with an appropriate message if the command fails for any reason.
If you wish to allow nonzero exit values but still want to trap unexpected errors, you may use an expanded call syntax. Call run() with a set of key=>value pairs. The two implemented keys are command (an array reference containing the command to run) and allowed (an array reference of exit values that are allowed without causing run() to return false or throw an exception.)
IPC::Run::Simple 1.3 Screenshot
IPC::Run::Simple 1.3 Keywords
IPC
ERR
O Cruel World
Simple 1.3
Cruel World
Simple system
command
system
world
wrapper
simple
o
IPC::Run::Simple
IPCRunSimple
IPC::Run::Simple 1.3
Libraries
Bookmark IPC::Run::Simple 1.3
IPC::Run::Simple 1.3 Copyright
WareSeeker periodically updates pricing and software information of IPC::Run::Simple 1.3 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of IPC::Run::Simple 1.3 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
commander
goodbye cruel world
ten commandments
command and conquer generals
cruel world trailer
command and conquer
cruel world lyrics
commander cody
10 commandments
cruel world reviews
cruel world part 1
what are the ten commandments
command and conquer red alert 3
home with this simple system
commander's palace
cruel world soundtrack
good bye cruel world
dos commands
Related Software
Getopt::Simple is a Perl module that provides a simple wrapper around Getopt::Long. Free Download
IPC::Run is a Perl module for system() and background procs w/ piping, redirs, ptys (Unix, Win32). Free Download
PDF::API2::Simple is a simplistic wrapper for the excellent PDF::API2 modules. Free Download
MP3::Icecast::Simple is a simple MP3::Icecast wrapper. Free Download
IPC::SharedCache is a Perl module to manage a cache in SysV IPC shared memory. Free Download
XML::Genx::Simple is a slightly simpler wrapper class for genx. Free Download
IPC::LDT is a Perl module that implements a length based IPC protocol. Free Download
mpgtx a command line MPEG audio/video/system file toolbox, that slices and joins audio and video files. Free Download
Latest Software
Popular Software
Favourite Software