rsh from unix to windows


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting rsh from unix to windows
# 1  
Old 12-10-2010
rsh from unix to windows


hi,

I am trying yo run a batch file (located on windows server) from unix (solaris). I use below command to do it,

Code:
rsh WINPRD1 -l WINPRD1+username "..\\directiory\\batchfile.bat"

But I guess some port/service need to be enabled as its giving me below error,

WINPRD1 Connection refused

# 2  
Old 12-10-2010
you should use ssh instead of rsh and make sure an ssh server is installed on windows side so it can handle your command.

Of course the network the connection goes through should be set up so that it authorizes such access (open the relevant port, no blocking firewall rules)

Last edited by ctsgnb; 12-10-2010 at 06:28 AM..
# 3  
Old 12-10-2010
Windows, by default, has no remote access capabilities other than the graphical "Remote Desktop Connection", which can't be automated. This means: no RSH, no SSH, ...

You'll have to install an appropriate service on the Windows machine first (I'd suggest SSH instead of RSH), or have a program poll the UNIX server at certain intervals for a trigger, at which point it starts the batch file.
# 4  
Old 12-10-2010
We have had a lot of luck with both ssh (using cygwin sshd), and winexe which is like the windows sysinternals "psexec" and needs no extra software installed on the windows box.

I hope this helps.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Needed SFTP script from windows to UNIX server and from UNIX to windows server(reverse SFTP)

hi guys, i need a script to sftp the file from windows to unix server ....(before that i have to check whether the file exists in the windows server or not and again i have to reverse sftp the files from unix to windows server..... regards, Vasa Saikumar. (13 Replies)
Discussion started by: hemanthsaikumar
13 Replies

2. Shell Programming and Scripting

RSH issue...trigged from mainframe on UNIX

I'm invoking RSH from mainframe to trigger a shell script on unix. The Unix shell script return code is not realized back by RSH in mainframe. Even if the script finishes 'exit -1', still RSH gets RC 00 in mainframe. I want 'exit -1' to be read as RSH failure RC and 'exit 0' as RSH RC 00... (1 Reply)
Discussion started by: Yuvaraj737
1 Replies

3. Shell Programming and Scripting

Unix shell script to Copy files from one Windows server to another Windows server.

Can anybody please help me on how to code for the below requirement: I need to write a shell script (on different unix server) to copy files from multiple folders (ex. BRN-000001) from one windows server (\\boldls-mwe-dev4)to a different windows server(\\rrwin-ewhd04.ecomad.int). This shell... (4 Replies)
Discussion started by: SravsJaya
4 Replies

4. Shell Programming and Scripting

Batch job in unix server to move the pdf file from unix to windows.

Hi Experts, I have a requirement where i need to setup a batch job which runs everymonth and move the pdf files from unix server to windows servers. Could some body provide the inputs for this. and also please provide the inputs on how to map the network dirve in the unix like that... (1 Reply)
Discussion started by: ger199901
1 Replies

5. AIX

Do I need to configure my local windows to FTP files from local windows to a UNIX AIX server?

Hi Friends, I have this script for ftping files from AIX server to local windows xp. #!/bin/sh HOST='localsystem.net' USER='myid_onlocal' PASSWD='mypwd_onlocal' FILE='file.txt' ##This is a file on server(AIX) ftp -n $HOST <<END_SCRIPT quote USER $USER quote PASS $PASSWD put $FILE... (1 Reply)
Discussion started by: rajsharma
1 Replies

6. UNIX for Advanced & Expert Users

rsh on SCO UNIX

Hi, How to enable rsh in SCO-UNIX Thanks (6 Replies)
Discussion started by: param_it
6 Replies

7. UNIX for Dummies Questions & Answers

unix script to check if rsh to box and send status mail

rshstatus=`rsh -n lilo /db/p2/oracle/names9208/restart_names.sh` if $rshstatus <>0 then errstatus=1 mailx -s "xirsol8dr" ordba@xxx.com >> $log_dr else if errstatus=0 echo "status to xirsol8dr successful" can anyone provide if this is t he correct way to do this or is there a better way? (1 Reply)
Discussion started by: bpm12
1 Replies

8. Linux

rsh windows with linux

rsh windows xp with linux as4 appear @permision denied please help me (1 Reply)
Discussion started by: mosaieb268
1 Replies

9. UNIX for Dummies Questions & Answers

Changing windows server alias name on windows or unix?

My situation is that we have production unix scripts that ftp files over to a windows server. I'm not sure if its a 2000 or 2003 server as I dont work on server, more on the unix side. It turns out that they are changing servers on the network. So they are migrating our data over from say Server 1... (1 Reply)
Discussion started by: NycUnxer
1 Replies

10. UNIX for Advanced & Expert Users

missing Path(in UNIX) when i launch a job on to unix machine using windows SSh

hi i want run an unix application from a windows program/application.i am using SSH(command line version)to log on to a unix machine from windows. the application has to read a configuration file inorder to run. the configuration file .CFG is in bin in my home directory. but the application... (1 Reply)
Discussion started by: megastar
1 Replies
Login or Register to Ask a Question