Execution of Batch file on a Remote Server

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
nivas
Participant
Posts: 117
Joined: Sun Mar 21, 2004 4:40 pm

Execution of Batch file on a Remote Server

Post by nivas »

Hi
I need to execute a batch file on a Remote server. The remote server OS is WINDOWS XP. I think RSH and REXEC utilities are for UNIX OS.

could any body suggest hints on it.

thanks
Nivas
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You might want to rethink that.
-craig

"You can never have too many knives" -- Logan Nine Fingers
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

Look into ssh as well when rethinking
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
nivas
Participant
Posts: 117
Joined: Sun Mar 21, 2004 4:40 pm

Post by nivas »

I tried with rsh as follows
rsh <host> -l <userid> <command>

I am getting error as Connection refused.Can't establish connection.

Could you please suggest hints.

thanks
Nivas
iDomz
Participant
Posts: 81
Joined: Wed Jul 25, 2007 5:25 am
Location: London

Post by iDomz »

Some hints from my end

RSH is not running on your Win XP
MS does not provide RSH for windows
There are open and close source implementations which you need to install and open up some ports - your IT team may have interesting opinions on that
If you have an enterprise scheduler, use it to trigger the batch file.

HTH,
D
nivas
Participant
Posts: 117
Joined: Sun Mar 21, 2004 4:40 pm

Post by nivas »

Thank you so much for the information. I got help from my IT team.
thanks
Nivas
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Ah... as you should have in the first place. :wink:

Please mark the thread as Resolved and it would be appreciated if you could post the actual resolution, what help they provided. It will help future searchers with the same question.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply