
swabbies
Novice
May 16, 2003, 1:35 PM
Post #1 of 5
(6763 views)
|
need help with win32 cmd line interaction
|
Can't Post
|
|
Hello, I am attempting to call a win32 cmd line .exe from Perl. The .exe works in the fashion that it runs until the user puts focus on the cmd line window and presses the letter "q". I can't seem to figure out how to make this happen in perl. For example I start my code the following way, but I can't get the letter que to be passed to the command line. The trick is that the letter isn't supposed to be on the line (c:\q) it is used as a break in the exe. Is it possible to pass an .exe a letter without it being on the command line itself? open(CDB,"|cdb.exe -g -g frsstress.exe /cfgfile stress.xml") or die "Unable to start cbd..."; sleep(60); print "q"; ###this is where I want the program to exe to break via the letter q. Any help would be greatly appreciated. thanks, Ben
|