
pauls at pauls
Sep 26, 1995, 3:43 AM
Post #3 of 3
(72 views)
Permalink
|
Jcwillia, I am using perl on my PC (perl 5.0 version 5.0M5) . It is the MSdos version I am getting some strange behavior when I use ' system("blah blah"); " Let me describe the problem. two directories A and B. B is included in my path declaration in autoexec.bat, A is not. I write a perl program in directory A. In the program in directory A (call the program "fred.bat") I call a program in directory B called "oscar.bat" usinf the followint code: system(oscar arg1 arg2"); The oscar program does not execute. I even tried this: system("c:\\dir1\\dir2\\oscar"); this also doesn't work. So, I copied "oscar.bat" intot A directory and everthing appeared fine until I started to edit oscar.bat (the one in directory A). My edits to the code seemed to have no effect. I found out that the oscar.bat that was being executed was the original one in directory B! So, I had to copy oscar.bat in to directory A to get "fred" to call the oscar.bat that is in directory B. This seems crazy. Do you have any idea of what is going on here??? Any help or tips would be greatly appreciated.. Thanks Paul Spitalny Washington State, USA
|