Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Win32 Daemon @INC

by Errto (Vicar)
on Jan 07, 2008 at 22:41 UTC ( #660961=note: print w/ replies, xml ) Need Help??


in reply to Win32 Daemon @INC

I've faced a similar issue. The above posters are probably right in that the mapped drive doesn't exist. In fact, even if you have a mapped drive in your default profile, you are currently logged in as that user, starting the service as that user, and have the service configured to run as that user, it still won't work. One solution I've used is to create a scheduled task like so:

at 17:40 /interactive net use L: \\servername\sharename /u:mydomain\my +user
Then at 17:40 you'll get a prompt for the password, then it will map the drive for you and your service will have access to that mapped drive.

You can also add a check for this in your Perl code:

unless { -d 'L:\' } { write_to_log_and_die(); }


Comment on Re: Win32 Daemon @INC
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://660961]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (11)
As of 2014-07-25 07:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (169 votes), past polls