: Wednesday, November 28, 2001 1:47 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: Redirecting STDOUT to a variable...
On Wed, 28 Nov 2001 [EMAIL PROTECTED] wrote:
> Thanks, but I need to preserve the value returned by $mycommand also. I
> guess using backticks won't all
$datacapture = `$command`;
$successorfailure = $?;
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, November 28, 2001 4:57 PM
Subject: RE: Redirecting STDOUT to a variable...
&
On Wed, 28 Nov 2001 [EMAIL PROTECTED] wrote:
> Thanks, but I need to preserve the value returned by $mycommand also. I
> guess using backticks won't allow me to do that .
> Mostly what I need to do is read from STDOUT into a variable. But I don't
> know how to do that.
Then just redirect STDOUT
lto:[EMAIL PROTECTED]]
Sent: Wednesday, November 28, 2001 11:56 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: Redirecting STDOUT to a variable...
On Wed, 28 Nov 2001 [EMAIL PROTECTED] wrote:
> I am looking to run a command using perl and get its return value as well
as
> its STDOUT
Hi,
Thanks
-Original Message-
From: Brett W. McCoy [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 28, 2001 11:56 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: Redirecting STDOUT to a variable...
On Wed, 28 Nov 2001 [EMAIL PROTECTED] wrote:
> I am looking to ru
On Wed, 28 Nov 2001 [EMAIL PROTECTED] wrote:
> I am looking to run a command using perl and get its return value as well as
> its STDOUT. Currently I am doing is
>
> $result = system("$myCommand >out.txt");
> open(FILE,"< out.txt");
>
> and then processing the data from the file. This is terribly
--- Mark Ross <[EMAIL PROTECTED]> wrote:
> >Have you taken a look at the GnuPG or Crypt::GPG
> modules on CPAN?
>
> Yep, I've looked (and longed), but my Web hosting
> service refers to them as "hooky." I think he's
> hostile because they aren't version 1 or higher (not
> that it really makes muc
>Have you taken a look at the GnuPG or Crypt::GPG
modules on CPAN?
Yep, I've looked (and longed), but my Web hosting
service refers to them as "hooky." I think he's
hostile because they aren't version 1 or higher (not
that it really makes much difference). I also don't
have the ability to directl
Have you taken a look at the GnuPG or Crypt::GPG modules on CPAN?
These would probably work really good for what you're doing, and
you wouldn't have to worry about redirecting STDOUT.
Brad Handy
--www.jack-of-all-trades.net
[EMAIL PROTECTED]
> -Original Message-
> From: Mark Ross [mailto