On 06-07 07:15, Sean LeBlanc wrote:
> 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.
> 
> I've also found that other imports seem to have it
> quietly fail, too. For example, use Date::Manip qw(ParseDate UnixDate);

Someone suggested I try this:

C:\home>at 9:00 cmd /c "c:\perl\bin\perl.exe c:\home\test.pl > c:\output.txt
2>&1"

Which was a good idea, since I get this in output.txt:

Perl lib version (v5.6.1) doesn't match executable version (v5.8.8) at
C:\oracle\product\10.1.0\Db_1\perl\5.6.1\lib\MSWin32-x86/Conf
ig.pm line 21.
Compilation failed in require at c:/Perl/lib/Env.pm line 122.
BEGIN failed--compilation aborted at c:/Perl/lib/Env.pm line 122.
Compilation failed in require at c:\home\test.pl line 2.
BEGIN failed--compilation aborted at c:\home\test.pl line 2.

I do have various Oracle products installed, but they don't interfere when I
run my Perl scripts. Apparently that's not the case when System is running
Perl, however.  Any idea how to fix this?

-- 
Sean LeBlanc:[EMAIL PROTECTED]  
http://sean-leblanc.blogspot.com/
People find life entirely too time-consuming. 
-Stanislaw J. Lec 
(contributed by Chris Johnston) 
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to