SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Running on remote system

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Running on remote system
Author Message
Hank Hill



Joined: 14 Feb 2002
Posts: 47

Post Running on remote system Reply with quote

If I need to run a batch file that exists on a remote system, how do I need to set up the path information? Do I move the files to the master and then tell them to run on the agent? Do I leave the files on the remote system and use the UNC path to tell it where to go? I tried using the local path on the remote system and it didn't work.

Wed Aug 14, 2002 1:41 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7952

Post Re: Running on remote system Reply with quote

As if the file was ran manually from a DOS prompt on the remote system.

You either need to copy your files first or refer to them using UNC files names (and tell the REMOTE where they are, not where to go.

To run a batch file on REMOTE which physically located on your machine you would use \\MYMACHINE\C$\myfile.bat for the command line

If your machine has no shares the only option you have is to copy files to the REMOTE then run them as local files.

: If I need to run a batch file that exists on a remote system, how do I need
: to set up the path information? Do I move the files to the master and then
: tell them to run on the agent? Do I leave the files on the remote system
: and use the UNC path to tell it where to go? I tried using the local path
: on the remote system and it didn't work.

Wed Aug 14, 2002 2:52 pm View user's profile Send private message
Hank Hill



Joined: 14 Feb 2002
Posts: 47

Post Re: Running on remote system Reply with quote

I've tried everything to make this run. I've used JAL scripts to run the batch when it was located on the master and on the remote server. I've scheduled it to run a batch file that was located locally and on the remote server. Nothing works. I know the batch file is good because it runs manually. I keep getting error messages there is an incorrect function. I've watched the tracing and it appears that the job is still trying to run locally, even though it is set up to run remotely. If I want to use a runandwait from my master server to run a batch file located at d:\folder1\subfolder1\file and have it start in the d:\folder1\subfolder1 directory, what should the script look like? I've tried everything. Half the time, it looks like it is trying to run on the master. others, the job starts remotely, but the run statement fails.

: As if the file was ran manually from a DOS prompt on the remote system.

: You either need to copy your files first or refer to them using UNC files
: names (and tell the REMOTE where they are, not where to go.

: To run a batch file on REMOTE which physically located on your machine you
: would use \\MYMACHINE\C$\myfile.bat for the command line

: If your machine has no shares the only option you have is to copy files to
: the REMOTE then run them as local files.

Thu Aug 29, 2002 2:38 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.