I'm trying to run a perl script from inside of a WIndows NT AT job, but I
don't seem to be having any luck. There are no errors listed, but the
script does not seem to do anything.
*** The batch job (test.bat):
rem Test perl in a batch job
perl test.pl
*** The perl script (test.pl):
print "Running test script\n";
*** The AT command:
at 16:00 "c:\temp\test.bat > c:\temp\test.log"
*** The batch job output (test.log):
h:\>type c:\temp\test.log
C:\WINNT35\system32>rem Test perl in a batch job
C:\WINNT35\system32>perl test.pl
Even if I change the batch job to route the perl output to a file:
rem Test perl in a batch job
perl test.pl > test.txt
the file TEST.TXT will be created, but empty. Oh yes, my SYSTEM PATH variable
is:
PATH=%SystemRoot%\system32;%SystemRoot%;C:\RESKIT35\;H:\MSTOOLS\bin;\\miura\
perl-nt\bin
The last entry is where perl is located. Does the problem have to do with
AT jobs and network connections?
--------------
Mike Frederick, University of Houston, Academic Support
mike@uh.edu
don't seem to be having any luck. There are no errors listed, but the
script does not seem to do anything.
*** The batch job (test.bat):
rem Test perl in a batch job
perl test.pl
*** The perl script (test.pl):
print "Running test script\n";
*** The AT command:
at 16:00 "c:\temp\test.bat > c:\temp\test.log"
*** The batch job output (test.log):
h:\>type c:\temp\test.log
C:\WINNT35\system32>rem Test perl in a batch job
C:\WINNT35\system32>perl test.pl
Even if I change the batch job to route the perl output to a file:
rem Test perl in a batch job
perl test.pl > test.txt
the file TEST.TXT will be created, but empty. Oh yes, my SYSTEM PATH variable
is:
PATH=%SystemRoot%\system32;%SystemRoot%;C:\RESKIT35\;H:\MSTOOLS\bin;\\miura\
perl-nt\bin
The last entry is where perl is located. Does the problem have to do with
AT jobs and network connections?
--------------
Mike Frederick, University of Houston, Academic Support
mike@uh.edu