summaryrefslogtreecommitdiff
path: root/it_pipe.class
diff options
context:
space:
mode:
authorUrban Müller2011-03-31 17:06:31 +0000
committerUrban Müller2011-03-31 17:06:31 +0000
commit0b13998a9752b6e488f3caf2cc2556f6a5947a78 (patch)
treefc3407e5a915a757eed12ec3f121e66fcbd25a28 /it_pipe.class
parent827499af71ba1f6fa6e65818768b9317623aeb1d (diff)
downloaditools-0b13998a9752b6e488f3caf2cc2556f6a5947a78.tar.gz
itools-0b13998a9752b6e488f3caf2cc2556f6a5947a78.tar.bz2
itools-0b13998a9752b6e488f3caf2cc2556f6a5947a78.zip
return lines array
Diffstat (limited to 'it_pipe.class')
-rw-r--r--it_pipe.class8
1 files changed, 8 insertions, 0 deletions
diff --git a/it_pipe.class b/it_pipe.class
index 0567ec3..722b7c0 100644
--- a/it_pipe.class
+++ b/it_pipe.class
@@ -109,6 +109,14 @@ function csv()
return $records;
}
+/**
+ * Return contents of pipe as array of lines
+ */
+function lines()
+{
+ return $this->lines;
+}
+
function pipe($cmd)
{
$descriptors = array(0 => array("pipe", "r"), 1 => array("pipe", "w"));