Re: calling a program from a perl script and redirecting to output to a file

2009-03-04 Thread rajgupta85
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

Re: calling a program from a perl script and redirecting to output to a file

2009-03-02 Thread Thomas Evangelidis
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

RE: calling a program from a perl script and redirecting to output to a file

2009-02-19 Thread Wagner, David --- Senior Programmer Analyst --- CFS
> -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

RE: calling a program from a perl script and redirecting to output to a file

2009-02-19 Thread Wagner, David --- Senior Programmer Analyst --- CFS
> -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

Re: calling a program from a perl script and redirecting to output to a file

2009-02-19 Thread James Moser
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

Re: calling a program from a perl script and redirecting to output to a file

2009-02-19 Thread Thomas Evangelidis
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