Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I need a batch program in perl to process some files.[ I run perl in Dos prompt( ActivePerl for windows is installed ]
I have a list of file names in a txt file called "list.txt" This txt file contains 100 file names ex: 200210_1_1001
200210_1_1002
200210_1_1003...so on till 100.I have a perl program called "info.pl"
My command line for processing single file is like
" info 200210_1_1002 system date user"I want this to be processed for all 100 files by a batch file in perl.
I would appreciate if anyone would guide me.
thanks in advance :-)
scorpiolittle scorpion

There are several methods you can use. The best would be to modify your current script to read-in and loop through the list.txt file processing each item. Second best would be to create a second script as a wrapper for the script that does the processing.
Which do you want?

Hi FishMonger thanks for taking time to read this. :-)
I want to know both methods. Preferably the second one since I am not allowed to modify the Current script.
Could you teach me both the methods.
Best regards
little scorpion

![]() |
C keys
|
FTP scripting question
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |