On 06-07 12:11, Mark Gardner wrote:
> 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.

Thanks for all the replies. I should have mentioned that CVSROOT is set at
the system level, and so it is correctly set for the System user.

Also, c:\perl\bin is the first thing in my path system-wide.

I did do a compare of the output of set for System vs. the output of set for
my login, and I did notice that PERL5LIB is still set for System, using the
Oracle libs. I had to unset this for myself in order to get rid of similar
errors and had forgot that I had to do that. The Oracle install must set
this. However, I cannot figure out how to UNSET this system-wide. I had
already deleted it from system vars in the control panel and restarted, but
that didn't do squat. I also tried setting it to nothing system-wide, and
that doesn't seem to work, either.

Since I can't login interactively as System user (I don't think?) how can I
set this PERL5LIB variable or delete it entirely?

-- 
Sean LeBlanc:[EMAIL PROTECTED]  
http://sean-leblanc.blogspot.com/
Human salvation lies in the hands of the creatively maladjusted. 
-Martin Luther King, Jr. 
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to