Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/book/system-command
Object for running system commands
https://github.com/book/system-command
Last synced: 3 months ago
JSON representation
Object for running system commands
- Host: GitHub
- URL: https://github.com/book/system-command
- Owner: book
- Created: 2010-10-10T22:12:08.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2023-02-04T21:40:14.000Z (almost 2 years ago)
- Last Synced: 2024-10-03T12:36:18.048Z (4 months ago)
- Language: Perl
- Homepage: http://search.cpan.org/dist/System-Command
- Size: 226 KB
- Stars: 11
- Watchers: 5
- Forks: 14
- Open Issues: 7
-
Metadata Files:
- Readme: README
- Changelog: Changes
Awesome Lists containing this project
README
NAME
System::Command - Object for running system commands
SYNOPSIS
use System::Command;
# invoke an external command, and return an object
$cmd = System::Command->new( @cmd );# options can be passed as a hashref
$cmd = System::Command->new( @cmd, \%option );# $cmd is basically a hash, with keys / accessors
$cmd->stdin(); # filehandle to the process stdin (write)
$cmd->stdout(); # filehandle to the process stdout (read)
$cmd->stderr(); # filehandle to the process stdout (read)
$cmd->pid(); # pid of the child process# done!
$cmd->close();# exit information
$cmd->exit(); # exit status
$cmd->signal(); # signal
$cmd->core(); # core dumped? (boolean)DESCRIPTION
System::Command is a class that launches external system commands and
return an object representing them, allowing to interact with them
through their "STDIN", "STDOUT" and "STDERR" handles.INSTALLATION
To install this module, run the following commands:
perl Makefile.PL
make
make test
make installAlternatively, to install with Module::Build, you can use the following commands:
perl Build.PL
./Build
./Build test
./Build installSUPPORT AND DOCUMENTATION
After installing, you can find documentation for this module with the
perldoc command.perldoc System::Command
You can also look for information at:
RT, CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=System-CommandAnnoCPAN, Annotated CPAN documentation
http://annocpan.org/dist/System-CommandCPAN Ratings
http://cpanratings.perl.org/d/System-CommandSearch CPAN
http://search.cpan.org/dist/System-Command/LICENSE AND COPYRIGHT
Copyright (C) 2010-2016 Philippe Bruhat (BooK)
This program is free software; you can redistribute it and/or modify it
under the terms of either: the GNU General Public License as published
by the Free Software Foundation; or the Artistic License.See http://dev.perl.org/licenses/ for more information.