[Tutor] run perl script files and capture results

T. Girowall tgirowall at yahoo.com
Thu Jan 10 02:14:45 CET 2013


New to programing and need some help. 
 
I have multiple perl script files that I would like to automate using python. Currently each one is ran individually and the output is manually examined. The perl script is ran form the command promp with arguments as follows: 
 
c:\scripts\perl>perl plscript.pl -cmnd1 -cmnd2
 
cmnd1 and cmnd2 are ran on files that reside within "perl" directory. The output is displayed in DOS window. 
 
My objective: 
1. Run the perl script using python
2. Capture the results from the DOS window and save it to python. Output consists of text names and corresponding numbers. 
 
I'm using python 2.7
 
Thank you!
Tim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20130109/fe54a045/attachment.html>


More information about the Tutor mailing list