Sean LeBlanc <[EMAIL PROTECTED]> wrote at 6/7/2006 07:15 AM:

I'm trying to nail down why my script seems to just quietly fail when
running. It seems that trying to import variables is failing:

This is test.pl:

#!/bin/perl
use Env;
print "foo!\n";
print "CVSROOT=$CVSROOT\n";

This works fine from the command prompt.

Scheduled it this way: at 8:03 cmd /c "c:\perl\bin\perl.exe c:\home\test.pl > c:\output.txt"

When it runs, nothing is in output.txt. Comment out use Env and it works,
but has nothing for CVSROOT, of course.
Env is probably working correctly, but CVSROOT is probably only set as a user environment variable for you. It's therefore not a Perl problem, as scheduled jobs only have access to system environment variables, not user-specific ones.

_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to