Title: Capturing the output of a sytem() command
Let me
clarify ths slightly.
I'm
using backticks to run the command, so I can capture the
output.
But
How do I read it sequentially, line by line.
I'm
converting a file from ASCII - BASE64, and want to read
the
converted file directly
Title: Message
perldoc -q
backticks
-- Mark
Thomas
Thomas.Mark@bls.gov Internet Systems Architect User Technology Associates,
Inc.
$_=q;KvtuyboopuifeyQQfeemyibdlfee;;
y.e.s. ;y+B-x+A-w+s; ;y;y; ;;print;;
-Original Message-From: George Gallen
[mailto:[EMAIL PROTECTED]
Title: Capturing the output of a sytem() command
Try: @array = `command` using backticks.
STDOUT is sent to an array.
Howard A. Bullock
Global IT Infrastructure
717-810-3584
-Original Message-
From: George Gallen
[mailto:[EMAIL PROTECTED]
Sent: Monday, October 06,
Title: Capturing the output of a sytem() command
Not
sure if you can with system() but you can with backticks:
my
$sys_call = `echo hi there`;print
"sys_call=$sys_call\n";
-Original Message-From: George Gallen
[mailto:[EMAIL PROTECTED]Sent: Monday, October 06, 2003 10:40
Let me clarify ths slightly.
I'm using backticks to run the command, so I can capture the output.
But How do I read it sequentially, line by line.
I'm converting a file from ASCII - BASE64, and want to read the
converted file directly from the base64 conversion routine.
# one way:
use
: Monday, October 06, 2003 9:56 AM
To: [EMAIL PROTECTED]
Subject: RE: Capturing the output of a sytem() command
Let me clarify ths slightly.
I'm using backticks to run the command, so I can capture the output.
But How do I read it sequentially, line by line.
I'm converting a file from ASCII
: George Gallen
[mailto:[EMAIL PROTECTED]Sent: Monday, October 06, 2003 10:56
AMTo: [EMAIL PROTECTED]Subject: RE:
Capturing the output of a sytem() command
Let
me clarify ths slightly.
I'm
using backticks to run the command, so I can capture the
output.
But
How do I read
Title: Capturing the output of a sytem() command
You
might just want to try back-ticks :
my
@Results = `cmd`;
-Original Message-From: George Gallen
[mailto:[EMAIL PROTECTED]Sent: Monday, October 06, 2003 10:40
AMTo: [EMAIL PROTECTED]Subject: Capturing
the output of a
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
Thomas, Mark - BLS CTR
Sent: Monday, October 06, 2003 11:21 AM
To: 'George Gallen'; [EMAIL PROTECTED]
Subject: RE: Capturing the output of a sytem() command
Let me clarify ths slightly.
I'm
-Original Message-
From: Lynn. Rickards [mailto:[EMAIL PROTECTED]
Sent: Monday, October 06, 2003 12:43 PM
To: 'George Gallen'; '[EMAIL PROTECTED]'
Subject: RE: Capturing the output of a sytem() command
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL
, October 06, 2003
11:21 AM
To:
[EMAIL PROTECTED]
Subject: RE: Capturing the output
of a sytem() command
I wasn't thinking when I
sent this one out.
I guess if I set it up as
returning information into an array, vs a straigt
$ varible, then I
just read it like reading a file
11 matches
Mail list logo