RE: Capturing the output of a sytem() command

2003-10-06 Thread George Gallen
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

RE: Capturing the output of a sytem() command

2003-10-06 Thread Thomas, Mark - BLS CTR
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]

RE: Capturing the output of a sytem() command

2003-10-06 Thread Bullock, Howard A.
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,

RE: Capturing the output of a sytem() command

2003-10-06 Thread Peter Eisengrein
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

RE: Capturing the output of a sytem() command

2003-10-06 Thread Thomas, Mark - BLS CTR
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

RE: Capturing the output of a sytem() command

2003-10-06 Thread Rob Dowell
: 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

RE: Capturing the output of a sytem() command

2003-10-06 Thread George Gallen
: 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

RE: Capturing the output of a sytem() command

2003-10-06 Thread Michael Genovese
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

RE: Capturing the output of a sytem() command

2003-10-06 Thread Lynn. Rickards
-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

RE: Capturing the output of a sytem() command

2003-10-06 Thread Lynn. Rickards
-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

RE: Capturing the output of a sytem() command

2003-10-06 Thread Morgan, Steve H.
, 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