Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by keithinsac

  1. keithinsac

    Copy on w2k3 from local to UNC/share fails

    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...
  2. keithinsac

    Copy on w2k3 from local to UNC/share fails

    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...
  3. keithinsac

    Copy on w2k3 from local to UNC/share fails

    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...
  4. keithinsac

    Copy on w2k3 from local to UNC/share fails

    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...
  5. keithinsac

    Copy on w2k3 from local to UNC/share fails

    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...

Part and Inventory Search

Back
Top