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!

need to launch Perl app from DOS

Status
Not open for further replies.

jcarrott

Programmer
May 28, 2009
130
US
I have a Java program that I need to run when a file exists. I have written a Perl program to see if the control file is available (FileFound_sh is the Perl program. If I run it from the DOS prompt using 'perl FileFound_sh' it works. I want to run it from the Windows Task scheduler.
I think I have to run something that contains 'perl FileFound_sh' in the scheduler.
I created a file 'Inv1.exe' and I tried using the start command and then I tried -

LAUNCH EXTERNAL PROCESS ("D:\\Perl\\bin\\perl.exe D:\\Program Files\\OHS\\Invoice\\FileFouns_sh")

Neither worked and neither gave an error.

Does anybody know what to use?
 
I found it, it was just

D:\\Perl\\bin\\perl.exe D:\\Program Files\\OHS\\Invoice\\perl FileFouns_sh

placed in a .bat file
 
I do the same thing via task scheduler except with out all the double \'s.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[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;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top