Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


gorkam
2013-04-14T14:23:21Z
I spent a number of days this week trying to get VC to run a simple batch file remotely. I understand it may not be VC, but I do not know what I am missing.

I know that I could solve the problem by using network mounted drives and letting VC copy from one NFS drive to another, but I think that VC should be able to run a script on another server so I don't have to mount and unmount.

Here is the script.

copy \\vansybmain\ingres_output\batchanalysistbl.txt \\vandevsql\ingres_output\batchanalysistbl.txt >> \\vandevsql\ingres_output\log.txt
copy \\vansybmain\ingres_output\shipanalysistbl.txt \\vandevsql\ingres_output\shipanalysistbl.txt >> \\vandevsql\ingres_output\log.txt

Here is the output of the log.

Access is denied.
Access is denied.

Both servers are Win2003, and the user running the script is a local admin on both servers, has full rights on the source and destination folders.

I've checked/changed the following things.

Issue with Win 2003 and batch files. I've made sure the cmd.exe program can be used by the BATCH group.

Checked the log file to make sure that both copy and cmd are actually working.

The script works fine run locally on the server and remotely on other servers.

So, all I am trying to do is copy two small text files from one server to another.

Any ideas?

Thanks, Mike
Sponsor
Forum information
Support
2013-04-15T08:30:21Z
You should start with the basic first to see where the problem is. First just run a script locally on the remote server that writes to a file or similar. If this works you know you have permissions set up right for remote execution. Then you can proceed to tests with access across shares (one share at a time copying to local to see which one you have limited permissions on).
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top