For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > January 2006 > Collect out from executed program









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Collect out from executed program
O. Olson

2006-01-10, 4:02 am

Hi,
I am sorry if you are getting this a second time. I posted this about
10 hours ago through google, and it seems that it has still not
appeared.

I want to grab the output of a program (called via a perl script).
Assuming the program or executable is located at
"/home/masca/org/10/exe" I have tried something like

open(OUTPUT, `"\/home\/masca\/org\/10\/exe"`);
while(<OUTPUT> ) {
print;
}

This results in nothing happening. Does anyone have any ideas what I
might be doing wrong?
Thanks a lot.
O.O.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com