Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

passing parameters

Status
Not open for further replies.

Cretin

Technical User
Jan 2, 2003
194
US
I have some posts on another thread about using .bat files. Well I have been given the green light to do a proof of concept to replace some .bat programs with Perl. Before I spend to much time on it(I know nothing about Perl so will be learning from the ground up) I thought I would ask about the capabilities.

We have some executables we outsourced the development of. With these executables we take input data, massage the data a little and insert the records into oracle tables. This process always was manual. The reason for this is to get it to work you need to enter some parameters into the executables such as .ini file name, input file name, etc. We wanted to automate this process so we created dos .bat programs to do date calculations, and feed the parameters into the executables. My question is could a Perl program feed parameters into a windows .exe file.

Cretin
 
Assuming it takes it via CLI or you can write out your own ini file with the data you need.

You didn't specify very much but anything your doing in .bat files I'm sure you can do in perl. As a matter of fact you could probably replace your .exe's also and do it all in perl to :)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[noevil]
Travis - Those who say it cannot be done are usually interrupted by someone else doing it; Give the wrong symptoms, get the wrong solutions;
 
Basically we already have an .ini file is all I need to do is get file names from the input file and pass it to the .exe. But thanks I shall try it.

Cretin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top