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 32.389.147 Times

IPC::Run::Simple 1.3

  Date Added: January 13, 2010  |  Visits: 751

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  
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  
Entertainment  -  Horror World 1.0.0.0
Get ready to be scared with Horror World App exclusively for Windows Phone users. Just hit download and enter into the world awesome horror. What are you waiting for, just hit download and start getting the goosebumps. Please beware that we are...
2 MB  
Music  -  KBS World TV 1.1.0.0
KBS World is a television channel for international audiences provided by the Korean Broadcasting System (KBS). It's your premier window on Korean contents with a nonstop, 24-hour a day, 7-day a week stream of Korea's latest and most popular...
1024 KB  
Productivity  -  Super World Clock Free 1.0.0.0
Super World Clock Free is very helpful and useful world clock. It shows current time from many countries and time zones. Definitely, Super World Clock is most useful tool that is essential in every abroad trip. Have you ever needed to...
3 MB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
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  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 3.15.3
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
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