run dialog box
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 5700
Dialog 1.0-20051207
Dialog allows you to present a variety of questions or display messages using dialog boxes from a shell script. more>>
Though similar in style to CDK, Dialog is different, being a script-interpreter which provides a set of curses widgets. Widgets are objects whose appearance and behavior can be customized. There is a much-reduced variation of dialog, called lxdialog, which is used in Linux kernel configuration.
Dialog allows you to present a variety of questions or display messages using dialog boxes from a shell script. Several types of dialog boxes are implemented including: calendar, checklist, file-selection, gauge, info, input, menu, message, radiolist, tailbox, text, time, yes/no.
Enhancements:
- change license to LGPL.
- change naming convention in dlg_colors.h to make it easier to read, and incidentally remove the last chunk of code preventing relicense.
- add --passwordform (request by Reznic Valery).
- modify pause.c, msgbox.c to work with --help-button.
- modify formbox.c, inputbox.c, textbox.c, yesno.c to work with extra button (adapted from Reznic Valery patch).
- modify dlg_exit_label(), dlg_yes_labels() and dlg_ok_label() to allow help-button (prompted by Reznic Valery patch).
- add zh_CN.po file from http://www.iro.umontreal.ca/translation/maint/dialog/
- provide alternate interfaces for dialog_checklist(), dialog_menu() and dialog_form(): dlg_checklist(), dlg_menu() and dlg_form() (discussion with Michael Gebetsroither).
- add/use dlg_result_key() to allow binding function keys to the buttons.
- implement user-definable key bindings in the rc-file.
- modify inline cases for KEY_xxx values to use binding tables in new module dlg_keys.c
- add several DIALOG_STATE items to the rc file: aspect, separate_widget, tab_len and visit_links
- add a tab-adjustment to dlg_print_text() to improve solution from 2005/10/30, e.g., in the samples/form* scripts.
- fix an off-by-one which made mouse-selection not work for menu items past the first page (GenToo #112024, patch by Harald van Dijk).
<<lessDialog allows you to present a variety of questions or display messages using dialog boxes from a shell script. Several types of dialog boxes are implemented including: calendar, checklist, file-selection, gauge, info, input, menu, message, radiolist, tailbox, text, time, yes/no.
Enhancements:
- change license to LGPL.
- change naming convention in dlg_colors.h to make it easier to read, and incidentally remove the last chunk of code preventing relicense.
- add --passwordform (request by Reznic Valery).
- modify pause.c, msgbox.c to work with --help-button.
- modify formbox.c, inputbox.c, textbox.c, yesno.c to work with extra button (adapted from Reznic Valery patch).
- modify dlg_exit_label(), dlg_yes_labels() and dlg_ok_label() to allow help-button (prompted by Reznic Valery patch).
- add zh_CN.po file from http://www.iro.umontreal.ca/translation/maint/dialog/
- provide alternate interfaces for dialog_checklist(), dialog_menu() and dialog_form(): dlg_checklist(), dlg_menu() and dlg_form() (discussion with Michael Gebetsroither).
- add/use dlg_result_key() to allow binding function keys to the buttons.
- implement user-definable key bindings in the rc-file.
- modify inline cases for KEY_xxx values to use binding tables in new module dlg_keys.c
- add several DIALOG_STATE items to the rc file: aspect, separate_widget, tab_len and visit_links
- add a tab-adjustment to dlg_print_text() to improve solution from 2005/10/30, e.g., in the samples/form* scripts.
- fix an off-by-one which made mouse-selection not work for menu items past the first page (GenToo #112024, patch by Harald van Dijk).
Download (0.32MB)
Added: 2005-12-09 License: LGPL (GNU Lesser General Public License) Price:
1416 downloads
Other version of Dialog
License:Perl Artistic License
UI::Dialog 1.08
UI::Dialog project supports priority ordering of the backend detection process. more>>
UI::Dialog project supports priority ordering of the backend detection process.
SYNOPSIS
use UI::Dialog;
my $d = new UI::Dialog ( backtitle => Demo, title => Default,
height => 20, width => 65 , listheight => 5,
order => [ zenity, xdialog ] );
# Either a Zenity or Xdialog msgbox widget should popup,
# with a preference for Zenity.
$d->msgbox( title => Welcome!, text => Welcome one and all! );
ABSTRACT
UI::Dialog is a OOPerl wrapper for the various dialog applications. These dialog backends are currently supported: Zenity, XDialog, GDialog, KDialog, CDialog, and Whiptail. There is also an ASCII backend provided as a last resort interface for the console based dialog variants. UI::Dialog is a class that provides a strict interface to these various backend modules. By using UI:Dialog (with its imposed limitations on the widgets) you can ensure that your Perl program will function with any available interfaces.
So if youd prefer that Xdialog should be used first if available, simply designate the desired order when creating the new object. The default order for detecting and utilization of the backends are as follows: (with DISPLAY env): Zenity, GDialog, XDialog, KDialog (without DISPLAY): CDialog, Whiptail, ASCII
UI::Dialog is the result of a complete re-write of the UDPM CPAN module. This was done to break away from the bad choice of name (UserDialogPerlModule) and to implement a cleaner, more detached, OOPerl interface.
<<lessSYNOPSIS
use UI::Dialog;
my $d = new UI::Dialog ( backtitle => Demo, title => Default,
height => 20, width => 65 , listheight => 5,
order => [ zenity, xdialog ] );
# Either a Zenity or Xdialog msgbox widget should popup,
# with a preference for Zenity.
$d->msgbox( title => Welcome!, text => Welcome one and all! );
ABSTRACT
UI::Dialog is a OOPerl wrapper for the various dialog applications. These dialog backends are currently supported: Zenity, XDialog, GDialog, KDialog, CDialog, and Whiptail. There is also an ASCII backend provided as a last resort interface for the console based dialog variants. UI::Dialog is a class that provides a strict interface to these various backend modules. By using UI:Dialog (with its imposed limitations on the widgets) you can ensure that your Perl program will function with any available interfaces.
So if youd prefer that Xdialog should be used first if available, simply designate the desired order when creating the new object. The default order for detecting and utilization of the backends are as follows: (with DISPLAY env): Zenity, GDialog, XDialog, KDialog (without DISPLAY): CDialog, Whiptail, ASCII
UI::Dialog is the result of a complete re-write of the UDPM CPAN module. This was done to break away from the bad choice of name (UserDialogPerlModule) and to implement a cleaner, more detached, OOPerl interface.
Download (0.082MB)
Added: 2007-03-05 License: Perl Artistic License Price:
965 downloads
Gtkdialog 0.7.9
Gtkdialog is a small utility for fast and easy GUI building. more>>
Gtkdialog is a small utility for fast and easy GUI building.
It can be used to create dialog boxes for almost any interpreted and compiled programs which is a very attractive feature since the developer does not have to learn various GUI languages for the miscellaneous programming languages.
Enhancements:
- This version contains some minor bugfixes and enhancements.
<<lessIt can be used to create dialog boxes for almost any interpreted and compiled programs which is a very attractive feature since the developer does not have to learn various GUI languages for the miscellaneous programming languages.
Enhancements:
- This version contains some minor bugfixes and enhancements.
Download (0.27MB)
Added: 2006-11-14 License: GPL (GNU General Public License) Price:
1076 downloads
Gtk2::Ex::PrintDialog 0.02
Gtk2::Ex::PrintDialog is a simple, pure Perl dialog for printing PostScript data in GTK+ applications. more>>
Gtk2::Ex::PrintDialog is a simple, pure Perl dialog for printing PostScript data in GTK+ applications.
SYNOPSIS
use Gtk2::Ex::PrintDialog;
my $dialog = Gtk2::Ex::PrintDialog->new; # a new dialog
$dialog->set_data($postscript_data); # supply some postscript data
$dialog->set_filename($postscript_file); # get postscript from a file
$dialog->run; # show the dialog to the user
This module implements a dialog widget that can be used to print PostScript data. It is intended to be a lightweight and pure-perl alternative to the Gnome2::Print libraries.
This module uses a simple system of operating-system specific backends that are used to do the job of printing. Currently, only a generic Linux/Unix backend (implemented using Net::CUPS) is available, more will be added in the future.
The dialog itself is intended to comply with the GNOME Human Interface Guidelines (HIG). It allows the user to print to any printer installed on the system, or to an external command such as lpr, or to print a PostScript or PDF file.
This module is UNSTABLE, the behaviour and API of its components may change in the future.
<<lessSYNOPSIS
use Gtk2::Ex::PrintDialog;
my $dialog = Gtk2::Ex::PrintDialog->new; # a new dialog
$dialog->set_data($postscript_data); # supply some postscript data
$dialog->set_filename($postscript_file); # get postscript from a file
$dialog->run; # show the dialog to the user
This module implements a dialog widget that can be used to print PostScript data. It is intended to be a lightweight and pure-perl alternative to the Gnome2::Print libraries.
This module uses a simple system of operating-system specific backends that are used to do the job of printing. Currently, only a generic Linux/Unix backend (implemented using Net::CUPS) is available, more will be added in the future.
The dialog itself is intended to comply with the GNOME Human Interface Guidelines (HIG). It allows the user to print to any printer installed on the system, or to an external command such as lpr, or to print a PostScript or PDF file.
This module is UNSTABLE, the behaviour and API of its components may change in the future.
Download (0.011MB)
Added: 2006-07-12 License: GPL (GNU General Public License) Price:
1199 downloads
run in xterm 0.9.1
run in xterm is an servcie menu which adds run in xterm & run in xterm as root to action menu on binary files, scripts etc. more>>
run in xterm is an servcie menu which adds "run in xterm" & "run in xterm as root" to action menu on binary files, scripts etc.
It has 2 languages: english and polish.
Installation:
copy/save this file in
~/.kde/share/apps/konqueror/servicemenus
<<lessIt has 2 languages: english and polish.
Installation:
copy/save this file in
~/.kde/share/apps/konqueror/servicemenus
Download (MB)
Added: 2006-06-12 License: GPL (GNU General Public License) Price:
1230 downloads
Dirty Sand Box 0.5
Dirty Sand Box (DSBapp) is a Web-administered, flat-file, Perl portal. more>>
Dirty Sand Box (DSBapp) is a Web-administered, flat-file, Perl portal.
It comes complete with forums, articles, links, download sections, classifieds ads, an image gallery, surveys, messaging, a POP3 mail client, and much more.
Each member profile has its own guest book and user image gallery.
Enhancements:
- A major overhaul was done.
- Perls CGI module (cgi.pm) is now used for all URL and form parsing. An auction, an e-cart, e-cards, subcategories for links and downloads sections, and preview images for downloads were added.
- More security features were added.
<<lessIt comes complete with forums, articles, links, download sections, classifieds ads, an image gallery, surveys, messaging, a POP3 mail client, and much more.
Each member profile has its own guest book and user image gallery.
Enhancements:
- A major overhaul was done.
- Perls CGI module (cgi.pm) is now used for all URL and form parsing. An auction, an e-cart, e-cards, subcategories for links and downloads sections, and preview images for downloads were added.
- More security features were added.
Download (2.9MB)
Added: 2007-07-19 License: GPL (GNU General Public License) Price:
827 downloads
KMilo - Compact Dialog 3.5.x
KMilo - Compact Dialog is a KDE patch that makes the default sound dialog look a bit less huge and BLUE. more>>
KMilo - Compact Dialog is a KDE patch that makes the default sound dialog look a bit less huge and BLUE.
Tested with 3.5.5 and 3.5.6
<<lessTested with 3.5.5 and 3.5.6
Download (MB)
Added: 2007-04-16 License: GPL (GNU General Public License) Price:
922 downloads
media-box 0.26
media-box is a dedicated media application. more>>
media-box is a program to watch all kind of multimedia files using a computer.
It suports playing DVD video, VideoCD, various movie files, Audio CD, various music files and watching various still pictures.
Main goal of this project is to have a dedicated computer in your living room by replacing your Hi-Fi component (DVD-player, CD-player). media-box runs in a linux environment so the need for computer power is very low.
Prefered system is a computer with at least 466MHz Celeron with 128MB of ram. Disk space is minimal, it works on 1GB partition but it can sure fit on a partition of 150MB or even less.
As it considers the sound output it is considered to have a sound card with digital out capabilities, so you can easily connect your computer with a dedicated external Dolby Digital receiver, but this is optional.
Graphics card should have a TV-Out feature, so you can watch your media content on TV. For getting the remote control over the whole program, you should make a hardware receiver or you can even buy one. Just make sure it is lirc compatible.
Software used to make this hardware work:
- debian - linux distribution
- xine-lib - library to play media content
- ati.2 - ATI drivers for XFree86 4.2.1 - to get TVOut working
- alsa - SB Live! drivers to get digital out sound
- lirc - remote control software
Enhancements:
- created upgrade script so on pressing n in main window will start an upgrade
- fixed start.sh script to use the /media-box/XF86Config-4 file
- size of screen is now calculated from the width and height of the back.jpg picture (was fixed to 800x600) - beware tvout works only on 800x600.
- fixed background of movie so it is black now. Subtitles of new xine lib displayed background image.
- added new types of files to play (based on extension)
- audio
- aac
- mp4
<<lessIt suports playing DVD video, VideoCD, various movie files, Audio CD, various music files and watching various still pictures.
Main goal of this project is to have a dedicated computer in your living room by replacing your Hi-Fi component (DVD-player, CD-player). media-box runs in a linux environment so the need for computer power is very low.
Prefered system is a computer with at least 466MHz Celeron with 128MB of ram. Disk space is minimal, it works on 1GB partition but it can sure fit on a partition of 150MB or even less.
As it considers the sound output it is considered to have a sound card with digital out capabilities, so you can easily connect your computer with a dedicated external Dolby Digital receiver, but this is optional.
Graphics card should have a TV-Out feature, so you can watch your media content on TV. For getting the remote control over the whole program, you should make a hardware receiver or you can even buy one. Just make sure it is lirc compatible.
Software used to make this hardware work:
- debian - linux distribution
- xine-lib - library to play media content
- ati.2 - ATI drivers for XFree86 4.2.1 - to get TVOut working
- alsa - SB Live! drivers to get digital out sound
- lirc - remote control software
Enhancements:
- created upgrade script so on pressing n in main window will start an upgrade
- fixed start.sh script to use the /media-box/XF86Config-4 file
- size of screen is now calculated from the width and height of the back.jpg picture (was fixed to 800x600) - beware tvout works only on 800x600.
- fixed background of movie so it is black now. Subtitles of new xine lib displayed background image.
- added new types of files to play (based on extension)
- audio
- aac
- mp4
Download (0.46MB)
Added: 2005-05-03 License: GPL (GNU General Public License) Price:
1638 downloads
Open Beat Box 0.7.1
Open Beat Box (OBB) is an open-source beat box ( a virtual drum machine ). more>>
Open Beat Box (OBB) is an open-source beat box ( a virtual drum machine ).
We are still in an early stage of development but we aim full drum machine functionalities.
Main features:
- Highly customizable graphical interface, including bitmap skins and variable shape widgets.
- Floating tools : realy interesting with multi-screen.
- Skin aware help system that update the images acording to the skin you curently use.
- Plug-in architecture for sound effects.
- Portability : Windows, Mac, Unix
- Cross-platform file compatiblitily.
- Real-time preview and offline rendering for realy complex effect that cant be added real-time on your machine
- Distributed rendering over multiple computers.
- Customizable sound sample packages.
- Customizable keyboard shortcuts.
- Matel Power glove input driver.
Enhancements:
- Code major restructuration
- More performance
- Added XML Skins
- Gui enhancements (drop shadow on labels, centered spinbox label, mousescroll on slidebars)
<<lessWe are still in an early stage of development but we aim full drum machine functionalities.
Main features:
- Highly customizable graphical interface, including bitmap skins and variable shape widgets.
- Floating tools : realy interesting with multi-screen.
- Skin aware help system that update the images acording to the skin you curently use.
- Plug-in architecture for sound effects.
- Portability : Windows, Mac, Unix
- Cross-platform file compatiblitily.
- Real-time preview and offline rendering for realy complex effect that cant be added real-time on your machine
- Distributed rendering over multiple computers.
- Customizable sound sample packages.
- Customizable keyboard shortcuts.
- Matel Power glove input driver.
Enhancements:
- Code major restructuration
- More performance
- Added XML Skins
- Gui enhancements (drop shadow on labels, centered spinbox label, mousescroll on slidebars)
Download (1.1MB)
Added: 2005-08-18 License: GPL (GNU General Public License) Price:
1535 downloads
cdialog 1.1-20070704
cdialog allows you to present a variety of questions or display messages using dialog boxes from a shell script. more>>
cdialog allows you to present a variety of questions or display messages using dialog boxes from a shell script.
Starting point for cdialog v.0.9a was dialog-0.6c. Many new features like as Resolution-independence, Auto-sizing, Maximizing, more widget on the same screen (multi-widget), etc. were added. New widget are tailbox and tailbox-in-background. Here are the options:
Usage: dialog
{ --and-widget }
At the moment, mouse support with libgpm cant be added because it doest implement the wtimeout() function of ncurses. Wtimeout() is needed to have more widgets (es.tailbox) cooperating on the same screen... I dont know if with newer versions of libgpm will be possible
Enhancements:
- A check for defunct input/output connections was added.
- Other minor fixes were made.
<<lessStarting point for cdialog v.0.9a was dialog-0.6c. Many new features like as Resolution-independence, Auto-sizing, Maximizing, more widget on the same screen (multi-widget), etc. were added. New widget are tailbox and tailbox-in-background. Here are the options:
Usage: dialog
{ --and-widget }
At the moment, mouse support with libgpm cant be added because it doest implement the wtimeout() function of ncurses. Wtimeout() is needed to have more widgets (es.tailbox) cooperating on the same screen... I dont know if with newer versions of libgpm will be possible
Enhancements:
- A check for defunct input/output connections was added.
- Other minor fixes were made.
Download (0.35MB)
Added: 2007-07-05 License: LGPL (GNU Lesser General Public License) Price:
847 downloads
dialog-mp3-list 0.60
dialog-mp3-list generates an organized list of your CDs and directories of MP3s. more>>
dialog-mp3-list generates an organized list of your CDs and directories of MP3s. It shows a numbered list of MP3s with information on their encoding speed and track lengths. It uses Dialog/XDialog and Latex to create lists in .tex, .ps, and .pdf formats.
You can modify the source file .tex and then you can compile it with the commands:
latex lista-mp3-albuns.tex
dvips lista-mp3-albuns.dvi -o
ps2pdf lista-mp3-albuns.ps
<<lessYou can modify the source file .tex and then you can compile it with the commands:
latex lista-mp3-albuns.tex
dvips lista-mp3-albuns.dvi -o
ps2pdf lista-mp3-albuns.ps
Download (0.076MB)
Added: 2006-07-31 License: GPL (GNU General Public License) Price:
1186 downloads
Shut The Box 0.4
Shut The Box is a simple diversion written in C and GTK+. more>>
Shut The Box project is a simple diversion written in C and GTK+. The object is simple: roll the dice and click the tiles that sum up to that dice roll until there are no more tiles to click.
Shut The Box is based off of those little wooden puzzles with dice and tiles. My first exposure was playing this as a BBS Door on a BBS my friend ran.
The concept was simple enough so I tried writing it for my own Atari BBS (with the help of another more experienced SysOp).
After I took the BBS offline, the game concept grew from an idea into a sort of “Hello World” application I’d write in order to become more familiar with a language. Hence, this is my “Hello World” for GTK+, although I have several other applications brewing in GTK+.
<<lessShut The Box is based off of those little wooden puzzles with dice and tiles. My first exposure was playing this as a BBS Door on a BBS my friend ran.
The concept was simple enough so I tried writing it for my own Atari BBS (with the help of another more experienced SysOp).
After I took the BBS offline, the game concept grew from an idea into a sort of “Hello World” application I’d write in order to become more familiar with a language. Hence, this is my “Hello World” for GTK+, although I have several other applications brewing in GTK+.
Download (0.041MB)
Added: 2006-12-26 License: GPL (GNU General Public License) Price:
1042 downloads
Gtk2::Ex::Dialogs 0.11
Gtk2::Ex::Dialogs is a Perl module with useful tools for Gnome2/Gtk2 Perl GUI design. more>>
Gtk2::Ex::Dialogs is a Perl module with useful tools for Gnome2/Gtk2 Perl GUI design.
SYNOPSIS
use Gtk2::Ex::Dialogs ( destroy_with_parent => TRUE,
modal => TRUE,
no_separator => FALSE );
# do some stuff like creating your apps main $window then,
# to ensure that all messages use the right parent, set it:
Gtk2::Ex::Dialogs->set_parent_window( $window );
# now popup a new dialog
my $r = ask Gtk2::Ex::Dialogs::Question ( "Is Perl only hackers glue?" );
if ( $r ) {
# end-user thinks so
} else {
# end-user does not think so
}
# now popup a new dialog ( blocking the main loop if there is one )
new_and_run
Gtk2::Ex::Dialogs::Message ( title => "Dialog Title",
text => "This is a simple message" );
# now popup a new dialog ( blocking the main loop if there is one )
new_and_run
Gtk2::Ex::Dialogs::ErrorMsg ( "Simple error message." );
This module provides the Gtk2::Ex::Dialogs::Message, Gtk2::Ex::Dialogs::ErrorMsg and Gtk2::Ex::Dialogs::Question classes to the main application while setting the initial defaults to those specified upon using Gtk2::Ex::Dialogs.
<<lessSYNOPSIS
use Gtk2::Ex::Dialogs ( destroy_with_parent => TRUE,
modal => TRUE,
no_separator => FALSE );
# do some stuff like creating your apps main $window then,
# to ensure that all messages use the right parent, set it:
Gtk2::Ex::Dialogs->set_parent_window( $window );
# now popup a new dialog
my $r = ask Gtk2::Ex::Dialogs::Question ( "Is Perl only hackers glue?" );
if ( $r ) {
# end-user thinks so
} else {
# end-user does not think so
}
# now popup a new dialog ( blocking the main loop if there is one )
new_and_run
Gtk2::Ex::Dialogs::Message ( title => "Dialog Title",
text => "This is a simple message" );
# now popup a new dialog ( blocking the main loop if there is one )
new_and_run
Gtk2::Ex::Dialogs::ErrorMsg ( "Simple error message." );
This module provides the Gtk2::Ex::Dialogs::Message, Gtk2::Ex::Dialogs::ErrorMsg and Gtk2::Ex::Dialogs::Question classes to the main application while setting the initial defaults to those specified upon using Gtk2::Ex::Dialogs.
Download (0.020MB)
Added: 2007-02-23 License: Perl Artistic License Price:
973 downloads
run 0.1
run adds a service menu for all file types. more>>
run adds a service menu for all file types. This service menu will just call the file in the command line using the active folder as work folder.
Makes running some scripts and applications much easier (Some require work folder to be the same where they are located so double-clicking does not work).
Maybe a good fix would be to make it available only for files that have the executable permission
<<lessMakes running some scripts and applications much easier (Some require work folder to be the same where they are located so double-clicking does not work).
Maybe a good fix would be to make it available only for files that have the executable permission
Download (MB)
Added: 2006-06-26 License: GPL (GNU General Public License) Price:
1215 downloads
IPC::Run::Simple 1.3
IPC::Run::Simple is a simple system() wrapper. more>>
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.)
<<lessSYNOPSIS
# 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.)
Download (0.005MB)
Added: 2007-08-15 License: Perl Artistic License Price:
802 downloads
Secleted [ 0 ] software to compare
Copyright Notice:
Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future software development. The above run dialog box search only lists software in full, demo and trial versions for free download. Download links are directly from our mirror sites or publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed