HoustonGSC
IS-IT--Management
I have a VBScript that invokes a Perl command line to process a file.
set objCmd = WShell.Exec(OutCmd2Exec)
Do Until objCmd.Status
Wscript.Sleep 1000
Loop
Where OutCmd2Exec is :
perl c:\gsc_scripts\lawson.pl
"E:\FTPfiles\lawrpt\failed\20100218081721.352414"
For most of the files the perl script processes fine except for one particular file.
The kicker is if I execute the perl command against the file directly from a command line it processes fine but if it is invoked from within the VBScript, it just hangs and never ends.
Has anyone encountered this kind of problem or have any suggestions at what I might look at?
set objCmd = WShell.Exec(OutCmd2Exec)
Do Until objCmd.Status
Wscript.Sleep 1000
Loop
Where OutCmd2Exec is :
perl c:\gsc_scripts\lawson.pl
"E:\FTPfiles\lawrpt\failed\20100218081721.352414"
For most of the files the perl script processes fine except for one particular file.
The kicker is if I execute the perl command against the file directly from a command line it processes fine but if it is invoked from within the VBScript, it just hangs and never ends.
Has anyone encountered this kind of problem or have any suggestions at what I might look at?