Run3

Table of Contents

NAME
Synopsis
Description
Constructor and initialization
Method: log($s)
Method: run3('Some command')
Required Modules
Resources
Author
Copyright

Run3

NAME

Local::Run3 - Local wrapper around IPC::Run3

Synopsis

	#/usr/bin/perl
	use warnings;
	use strict;
	use Local::Run3;
	# ----------------
	my($command) = 'rm -rf /'; # Don't try this at home, kids. So where...? Oh!
	my($runner)	 = Local::Run3 -> new();
	print join("\n", @{$runner -> run3($command)});

Description

Local::Run3 is a pure Perl module.

It is a wrapper around IPC::Run3::run3 which returns - via run('Some command') - the command and both output streams as an array ref of lines.

Thereafter, this array ref can be parsed for interesting things.

Constructor and initialization

new(...) returns a Local::Run3 object.

This is the class's contructor.

Usage: Local::Run3 -> new().

new() does not take any parameters.

Method: log($s)

Returns nothing.

Append $s to the log buffer.

Conveniently, $s can contain embedded new-lines.

Method: run3('Some command')

Returns an array ref of lines.

See run3() for the format of this output.

Required Modules

  • IPC::Run3

Resources

http://savage.net.au/Perl-modules/html/local-module-overview.html

Author

Local::Run3 was written by Ron Savage in 2004.

Home page: http://savage.net.au/index.html

Copyright

Australian copyright © 2004, Ron Savage. All rights reserved.

	All Programs of mine are 'OSI Certified Open Source Software';
	you can redistribute them and/or modify them under the terms of
	The Artistic License, a copy of which is available at:
	http://www.opensource.org/licenses/index.html
 
Top of page