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

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

Serving Software Downloads in 956 Categories, Downloaded 50.181.523 Times

IPC::Run::Simple 1.3

  Date Added: January 13, 2010  |  Visits: 998

IPC::Run::Simple

Report Broken Link
Printer Friendly Version


Product Homepage
Download (91 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
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  
Libraries  -  wwtxt 1.11
Parsing XML and CSS data is rather simple, but most libraries that aim for this simple goal are bloated with a whole lot of other irrelevant additions. The wwtxt library is a very minimalistic library containing just the required parsers (and...
46.08 KB  
Development Tools  -  Gravel 1.0.2
Gravel is a set of component libraries which provide clean and simple components for JSF applications. - ga - This set of tags provide a set of action-related components. The tags support various response-time actions, security role-checking, and...
 
Utilities  -  Virtual AGC 20060110
Virtual AGC project is a simulation of the Apollo Guidance Computer (AGC) used in the Apollo Command Modules and Lunar Modules in 1968-1972, as well as the Abort Guidance System (AGS) used in the LM. The project includes an emulated CPU, an...
2.8 MB  
Programming  -  CLIG 1.2.0
CLIG - Command Line Interface Generator Clig is a code generator for several programming languages that allows you easy creation of command line parsers. Including a GUI and Command Line tool.
34.95 KB  
Password Managers  -  Password Cipher 0.1.1
A command-line to help encipher and decipher your password based on a simple algorithm. Java version provides GUI.
5.27 KB  
Libraries  -  SQL::Shell 1.13
SQL::Shell is a command interpreter for DBI shells. SYNOPSIS use SQL::Shell; #Initialise and configure my $sqlsh = new SQL::Shell(%settings); $sqlsh->set($setting, $new_value); $value = $sqlsh->get($setting); #Interpret commands...
30.72 KB  
Libraries  -  libbonobo 2.19.4
libbonobo is the non-GUI part of the bonobo component infrastructure, it is most useful for creating aggregate interfaces & doing IPC easily. libbonobo also contains a rather badly designed & implemented per-system activation system. This needs...
1.7 MB  
Libraries  -  Term::ShellUI 0.85
Term::ShellUI is a fully-featured shell-like command line environment. SYNOPSIS use Term::ShellUI; my $term = new Term::ShellUI( commands => { "cd" => { desc => "Change to directory DIR", maxargs => 1, args => sub {...
43.01 KB  
Libraries  -  The Freiburg Project 2.0
The Freiburg project is an infrastructure to replace shared libraries with a client/server interface. This system converts a shared library into a "service" using Unix or inet domain sockets for communication. The "service" will be usable by any...
204.8 KB  
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 4.0.0
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