First of all I'm on Windoze NT 4.0 server (which can't be helped right now). I'm trying to write all of my scripts in a language that will also work when we convert to Linux some day.

My perl script works fine when I run it from the command line. But when I run it from a scheduler, it doesn't print any output. I've boiled it down to a just a couple of lines and tested the following:

#!perl -w
use strict;
use DBI;

print "allocate channel for maintenance type disk;\n";


Again it works prints fine when I run it at the command prompt, but not as a scheduled job. The scheduled job runs as the same user (not SYSTEM) as it does at the command prompt. Also, when I take out "use DBI;" it works from the scheduled job as well. So it's the combination of "use DBI;" and running it as scheduled job. Another note, it's not just STDOUT. It doesn't print to any file.

Any help would be appreciated.