RE: system() output question.

2002-02-22 Thread Nikola Janceski

man perlipc
line 308 "Using open() for IPC"

use
open(COMMAND, "your command | ");

now you can read from 

besure to 
close COMMAND;

-Original Message-
From: Wert, Nathaniel [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 22, 2002 3:11 PM
To: [EMAIL PROTECTED]
Subject: system() output question.


I would like to be able to take the output of system(some cmd) and send it
to a filehandle.  How is this possilbe?


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



The views and opinions expressed in this email message are the sender's
own, and do not necessarily represent the views and opinions of Summit
Systems Inc.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: system() output question.

2002-02-22 Thread Timothy Johnson


Maybe system() isn't really what you want then.  Try using backticks:

$scalar = `some cmd`;
print OUTFILE $scalar;

-Original Message-
From: Wert, Nathaniel [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 22, 2002 12:11 PM
To: [EMAIL PROTECTED]
Subject: system() output question.


I would like to be able to take the output of system(some cmd) and send it
to a filehandle.  How is this possilbe?


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



This email may contain confidential and privileged 
material for the sole use of the intended recipient. 
If you are not the intended recipient, please contact 
the sender and delete all copies.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




system() output question.

2002-02-22 Thread Wert, Nathaniel

I would like to be able to take the output of system(some cmd) and send it to a 
filehandle.  How is this possilbe?


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]