On Mar 2, 2:49 pm, teva...@gmail.com (Thomas Evangelidis) wrote:
> Hi again,
>
> I'm digging out this thread cause it seems that my problem has been only
> partially solved. Indeed "my @myout = `program file`;" can save the output
> of my program to an array for parsing but this doesn't happen when
Hi again,
I'm digging out this thread cause it seems that my problem has been only
partially solved. Indeed "my @myout = `program file`;" can save the output
of my program to an array for parsing but this doesn't happen when I use
programs with output that cannot be redirected to a file (i.e. erro
> -Original Message-
> From: Thomas Evangelidis [mailto:teva...@gmail.com]
> Sent: Thursday, February 19, 2009 08:27
> To: beginners@perl.org
> Subject: calling a program from a perl script and redirecting
> to output to a file
>
> Dear Perl programmers,
>
> I want to run a program from
> -Original Message-
> From: Thomas Evangelidis [mailto:teva...@gmail.com]
> Sent: Thursday, February 19, 2009 09:12
> To: Wagner, David --- Senior Programmer Analyst --- CFS
> Cc: beginners@perl.org
> Subject: Re: calling a program from a perl script and
> redir
This seems to work for me:
$apbs = '/bin/ls';
$output = 'output.txt';
`$apbs > $output`
Does this do what you need?
On Feb 19, 2009, at 10:11 AM, Thomas Evangelidis wrote:
Thank you David. A typical output file comprises ~200 lines. Most of
those
files are useless and thus the arrays that c
Thank you David. A typical output file comprises ~200 lines. Most of those
files are useless and thus the arrays that contain theirs lines will occupy
extra memory. I am running many such scripts concurrently which invoke
similar processes several times so I'm wondering if there is a way to erase
t