Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.544.803 Times

IPC::Run::Simple 1.3

  Date Added: January 13, 2010  |  Visits: 712

IPC::Run::Simple

Report Broken Link
Printer Friendly Version


Product Homepage
Download (73 downloads)



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.).

Requirements: No special requirements
Platforms: Linux
Keyword: Command Cruel World Echo Err Ipc Ipcrunsimple Libraries O Cruel World Programming Simple Simple System System World
Users rating: 0/10

License: Freeware Size: 5.12 KB
USER REVIEWS
More Reviews or Write Review


IPC::RUN::SIMPLE RELATED
Database Tools  -  iLP System 2.2
The iLP System (Item List Points) is an alternative loot-distribution system for World of Warcraft. It understands itself as a better DKP-System both for small or high-end raiding PvE guilds.
501.76 KB  
Utilities  -  MyBook World Edition Packages 0.0
MyBook World Edition Packages project collection provides pre-compiled packages for hacking Western Digital MyBook World Edition, to improve performance and add new features. At least intermediate Linux experience is required for playing with...
 
Screen Savers  -  Justice Around The World 1.2
Stunning collection of world famous courts and palaces of justice depicting the weight and importance assigned the world over to justice.
 
Strategy Games  -  iReal Games Library 1.0
Tools and libraries for the back end of game applications including world/object management and AI.
34.01 KB  
Audio Tools  -  m3u123 0.6
m3u123 is a very simple command line music player that uses XMMS I/O plugins to play music, independently of XMMS. m3u123 project does not require an X server..
15.36 KB  
Utilities  -  JaCL Linux 0.2005-07-11 beta1
JaCL Linux (Just a Command Line Linux) is a live CD distribution (a Knoppix remaster) of the Linux operating system. JaCL Linux is designed to be run as a command line driven server or utility system. Most major command line applications or...
325 MB  
Shell & Desktop  -  PortageMonitor 0.9.1
PortageMonitor is a Superkaramba theme that displays the current system and world ebuild updates available on a Gentoo system. PortageMonitor allows the user to customize the options used in getting system and world updates from --deep,...
59.39 KB  
Reference  -  ChangeAgent: Transform yourself. Change the world. 1.0
"ChangeAgent is about sparking a revolution from within. Your decision to change your personal world today could end up inspiring others everywhere to do the same. In a world of nay-sayers, ChangeAgent offers a fresh perspective on how...
100 MB  
Games  -  End of the World - 3rd Planet Space Mission 1.0
Is the end of the world and your mission if you want to accept it is to defend the world with .... mmm with ...... your finger! tons of meteors are landing on earth and we need a fast finger commander that can stop...
22 MB  
Games  -  Guild Wars 2: Living World 1.0
Guild Wars 2: Living World is an app to help you to discover what is happening in the world of Guild Wars. Check dynamic events on a map, event details and location. Requirements: iOS 5.0 or later. Compatible with iPhone, iPad, and iPod...
14.1 MB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB  
Libraries  -  App::SimpleScan::Substitution::Line 2.02
App::SimpleScan::Substitution::Line is a line with optional fixed variable values. SYNOPSIS my $line = App::SimpleScan::Substitution::Line->new(" this "); # Use only this value when substituting " ". $line->fix(substituite =>...
54.27 KB