Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

tap::parser::iterator::process(3pm) [osx man page]

TAP::Parser::Iterator::Process(3pm)			 Perl Programmers Reference Guide		       TAP::Parser::Iterator::Process(3pm)

NAME
TAP::Parser::Iterator::Process - Iterator for process-based TAP sources VERSION
Version 3.23 SYNOPSIS
use TAP::Parser::Iterator::Process; my %args = ( command => ['python', 'setup.py', 'test'], merge => 1, setup => sub { ... }, teardown => sub { ... }, ); my $it = TAP::Parser::Iterator::Process->new(\%args); my $line = $it->next; DESCRIPTION
This is a simple iterator wrapper for executing external processes, used by TAP::Parser. Unless you're writing a plugin or subclassing, you probably won't need to use this module directly. METHODS
Class Methods "new" Create an iterator. Expects one argument containing a hashref of the form: command => @command_to_execute merge => $attempt_merge_stderr_and_stdout? setup => $callback_to_setup_command teardown => $callback_to_teardown_command Tries to uses IPC::Open3 & IO::Select to communicate with the spawned process if they are available. Falls back onto "open()". Instance Methods "next" Iterate through the process output, of course. "next_raw" Iterate raw input without applying any fixes for quirky input syntax. "wait" Get the wait status for this iterator's process. "exit" Get the exit status for this iterator's process. "handle_unicode" Upgrade the input stream to handle UTF8. "get_select_handles" Return a list of filehandles that may be used upstream in a select() call to signal that this Iterator is ready. Iterators that are not handle based should return an empty list. ATTRIBUTION
Originally ripped off from Test::Harness. SEE ALSO
TAP::Object, TAP::Parser, TAP::Parser::Iterator, perl v5.16.2 2012-10-25 TAP::Parser::Iterator::Process(3pm)

Check Out this Related Man Page

TAP::Parser::Iterator::Array(3pm)			 Perl Programmers Reference Guide			 TAP::Parser::Iterator::Array(3pm)

NAME
TAP::Parser::Iterator::Array - Internal TAP::Parser array Iterator VERSION
Version 3.17 SYNOPSIS
# see TAP::Parser::IteratorFactory for preferred usage # to use directly: use TAP::Parser::Iterator::Array; my @data = ('foo', 'bar', baz'); my $it = TAP::Parser::Iterator::Array->new(@data); my $line = $it->next; DESCRIPTION
This is a simple iterator wrapper for arrays of scalar content, used by TAP::Parser. Unless you're subclassing, you probably won't need to use this module directly. METHODS
Class Methods "new" Create an iterator. Takes one argument: an $array_ref Instance Methods "next" Iterate through it, of course. "next_raw" Iterate raw input without applying any fixes for quirky input syntax. "wait" Get the wait status for this iterator. For an array iterator this will always be zero. "exit" Get the exit status for this iterator. For an array iterator this will always be zero. ATTRIBUTION
Originally ripped off from Test::Harness. SEE ALSO
TAP::Object, TAP::Parser, TAP::Parser::Iterator, TAP::Parser::IteratorFactory, perl v5.12.1 2010-04-26 TAP::Parser::Iterator::Array(3pm)
Man Page

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Zambie process

Hi all, I referred many books and sites to get the examples for zambie process. But no luck for me, I'm not get clear information. Can any of you Guru's explain me "Zambie Process" with some examples. Please. Thanks in advance, Ganapati. (4 Replies)
Discussion started by: ganapati
4 Replies

2. UNIX for Advanced & Expert Users

Consolidating Pipes

This is something I've given a lot of thought to and come up with no answer. Say you have a data stream passing from a file, through process A, into process B. Process A only modifies a few bytes of the stream, then prints the rest of the stream unmodified. Is there any way to stream the file... (4 Replies)
Discussion started by: Corona688
4 Replies

3. Shell Programming and Scripting

finding Background Process Id

Hi Gurus, How can i find background process is completed or not. I have mentioned my scenario below. Actually Pr1 Process is running in back ground, i just want to know whether this process completed or not. I can come to know the process id by typing pid=$! but i want to trigger... (4 Replies)
Discussion started by: krk_555
4 Replies

4. UNIX for Advanced & Expert Users

List Process with their Status.

Hi all, How can I get the list of all the processes that are either Orphan or Zombie or Running or Ended or Stopped ? Please suggest !! Thanks. Varun:b: (2 Replies)
Discussion started by: varungupta
2 Replies

5. UNIX for Dummies Questions & Answers

Process list

Hi, How to list the processes which are created in last 7 days ? Is there any script or command, please reply ASAP. Thanks Rajesh (2 Replies)
Discussion started by: rajesh08
2 Replies

6. UNIX for Dummies Questions & Answers

Environment Status Variable

Hi all, understood that upon executing a script, we can get various in-built variable like: $? => Exit status $$ => Process PID ${0##*/} => Process ID Name Is there any readily available lookup table as to what are the available status variablee, and what do they mean... Thanks in... (2 Replies)
Discussion started by: srage
2 Replies

7. UNIX for Dummies Questions & Answers

Extract Unique Values from file

Hello all, I have a file with following sample data 2009-08-26 05:32:01.65 spid5 Process ID 86:214 owns resources that are blocking processes on Scheduler 0. 2009-08-26 05:32:01.65 spid5 Process ID 86:214 owns resources that are blocking processes on Scheduler 0. 2009-08-26... (5 Replies)
Discussion started by: simonsimon
5 Replies

8. Shell Programming and Scripting

Using variable in awk command

Have a small doubt . While using an iterator , i need to take the fields as seen as below . But the Iterator is not been displayed . Can you please help with this . Code: ITERATOR=0COUNT=`cat test.txt`echo "$COUNT" while do echo $ITERATOR echo "$COUNT" awk... (3 Replies)
Discussion started by: Ravi_Teja
3 Replies