Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

[OT] Environment variable missing for scheduled task in Windows Server 2008

by Lotus1 (Vicar)
on Jun 07, 2018 at 18:20 UTC ( [id://1216125]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if( not defined $ENV{SERVER_ENVIRONMENT} or not $ENV{SERVER_ENVIRONMEN
    +T} ) {
        print $fh_log "Environment variable \"SERVER_ENVIRONMENT\" is requ
    +ired to be set up. \n";
        die "Environment variable \"SERVER_ENVIRONMENT\" is required to be
    + set up. \n";
    }
    
  2. or download this
    use strict;
    use warnings;
    ...
    foreach (sort keys %ENV) {
        print $fh_log "$_ $ENV{$_}\n";
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1216125]
Approved by stevieb
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-04-24 00:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found