Computing.Net > Forums > Programming > Batch program in Perl needed

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Batch program in Perl needed

Reply to Message Icon

Name: scorpion777
Date: December 6, 2005 at 16:25:23 Pacific
OS: Windows
CPU/Ram: 1.5ghz
Comment:


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 :-)
scorpio

little scorpion



Sponsored Link
Ads by Google

Response Number 1
Name: FishMonger
Date: December 6, 2005 at 16:49:29 Pacific
Reply:

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?



0

Response Number 2
Name: scorpion777
Date: December 7, 2005 at 05:35:42 Pacific
Reply:

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


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


C keys FTP scripting question



Post Locked

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


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Batch program in Perl needed

Batch file in perl www.computing.net/answers/programming/batch-file-in-perl/13783.html

batch programming help reqd www.computing.net/answers/programming/batch-programming-help-reqd/15695.html

Dos Batch Programming www.computing.net/answers/programming/dos-batch-programming/487.html