True, too true. Windows has Task Scheduler which is similar to cron for W2k3 (vs At for W2k) and has a command line tool and API (schtasks.exe). The only problem is that if run from the command interface and the task has saved credentials, the saved credentials aren't used unless a local Admin...
Hey there travs69,
I wanted to say a big Thank You for all your help. Drive mapping helped clueing in on what the issue was and provided a more detailed message when erroring out. The real issue was that the Windows service that kicks off the Perl script runs under 'Local System'. That...
I changed the script as suggested and now I get a different error. Any idea?
Code:
my @comargs = ("net use f: \\\\myserver\\teamsite_incoming\\");
$res = system(@comargs);
print LOG "\n system @comargs result: $?:$! | res: $res";
$cpresult = copy($ts_log_file,"f:\\".$file);
print LOG "\n perl...
Thanks for the feedback travs69, but I really want to get this to work via perl copy. When run as a server process from a Windows service, the only way to drive map is by executing another perl system(args) command with 'net use', but there is no logged on user as the windows service (local...
Hello,
I'm having a problem with a script that uses the Perl::Copy mod to copy a file from the local host to a network share. From local to local the copy works just fine (ie c:\dir\file.txt to e:\dir\file.txt), but when copying from local to a UNC, it continues to fail. The UNC share is a...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.