07-26-2001
Follow up
Thank you to all those who replied to my question. Below is a summary of my findings when incorporating RSH. Perhaps this might help others.....
RSH [options] host [command] (sample test command used = rsh myserver -l username df -k)
-The log on "user" must have a valid user account on the Windows machine.
- The log on "user" must have a valid user account on the Unix machine. The user's log on name on both the Unix and Windows machine must be identical.
-On the Unix machine, the etc/hosts.equiv file must contain both the sending machine's fully qualified hostname (DNS) and the "user" name. Use the “man rsh” command in unix for details.
-If the RSH command is used in a batch file invoked by a Windows Service, the Service requires the "Log On As" name to be the same user name listed in the etc/hosts.equiv file.
-The Windows machine must have a registered name in the local DNS.
-While not recommended, if the local Windows machine is not registered in DNS, as might be the case for temporary test servers in development environments, you can override by putting the Windows machine's IP address and fully qualified server name in the Unix machine's etc/inet/hosts file (i.e. 123.45.67.89 myserver.mycompany.com loghost).
8 More Discussions You Might Find Interesting
1. Programming
Hello.
I am programming in C on HP-UNIX system,i want ftp a file from remote pc which is window 2000 system,i donot how config my HP-UNIX and pc, i donot how program in C or in shell.
Thank you for help. (3 Replies)
Discussion started by: bdyjm
3 Replies
2. Windows & DOS: Issues & Discussions
Dear user
sorry if the subject is not for that fourm .. but I get mad .. I wana solve that problem.. I started my new semster .. and last semster.. and there I use the net under a very huge list of restriction .. no msn massenger .. no yahoo massenger .. no underground site .. no fourms (I am ... (2 Replies)
Discussion started by: RuDe_BuT_CoOoL
2 Replies
3. UNIX for Dummies Questions & Answers
I am trying to set samba up to join my windows 2000 domain and I am having troubles
If anyone if familiar with this help would be greatly appreciated
I issue the following command
# ./smbpasswd -j DOMAIN -r DOMAINCONTROLER
And the following gets returned
load_client_codepage: filename... (4 Replies)
Discussion started by: gennaro
4 Replies
4. UNIX for Dummies Questions & Answers
Hi Brothers,
Please, I've just purchased a new PC and I would like to have both win 2000 and freebsd in the same hard drive, ( 40GB and 128Mb ) can you please help how to set up my new hard drive , please!
Thank you.....
aka Polymorphous (2 Replies)
Discussion started by: Polymorphous
2 Replies
5. Programming
Hello
I need to translade the power of unix command shell (grep, sed, awk, wc, etc..) to windows.
In my work every day I administrate 15 unix server ans 18 windows server, and I have the problem the absolutly limitation of windows shell. I´m a system administrator but I know programming.
I... (2 Replies)
Discussion started by: dalmus
2 Replies
6. UNIX for Dummies Questions & Answers
All,
I am looking for the easiest solution that will let me remote access from a Windows 2000 client into a Solaris 8 server. Any suggestions?
Thanks Kevin (3 Replies)
Discussion started by: Kevin1166
3 Replies
7. Windows & DOS: Issues & Discussions
i have pleasure in using shell scripts and vi editor.
VI Improved on Linux is also good.
Is there a way that allows using shell as command interpretor
and VIm as editor to work on windows? (not vi.exe)
any help....... (1 Reply)
Discussion started by: paresh n doshi
1 Replies
8. Shell Programming and Scripting
I need to run a shell script on unix machine from windows 7.
I used the "RSH" command in win XP successfully for this, But on win 7 it is not working.
Can any body tell me how to run RSH on win 7 or any other command for similar use.
I use the command as below
rsh <unix m/c> -l <username>... (1 Reply)
Discussion started by: arup1980
1 Replies
RSH(1) General Commands Manual RSH(1)
NAME
rsh - remote shell
SYNOPSIS
rsh [-n] [-l username] host [command]
host [-n] [-l username] [command]
DESCRIPTION
Rsh connects to the specified host, and executes the specified command. Rsh copies its standard input to the remote command, the standard
output of the remote command to its standard output, and the standard error of the remote command to its standard error. Interrupt, quit
and terminate signals are propagated to the remote command; rsh normally terminates when the remote command does.
The remote username used is the same as your local username, unless you specify a different remote name with the -l option. This remote
name must be equivalent (in the sense of rlogin(1)) to the originating account; no provision is made for specifying a password with a com-
mand.
If you omit command, then instead of executing a single command, you will be logged in on the remote host using rlogin(1).
Shell metacharacters which are not quoted are interpreted on local machine, while quoted metacharacters are interpreted on the remote
machine. Thus the command
rsh otherhost cat remotefile >> localfile
appends the remote file remotefile to the localfile localfile, while
rsh otherhost cat remotefile ">>" otherremotefile
appends remotefile to otherremotefile.
OPTIONS
-l username
Specify the remote user name.
-n Connect standard input of the remote command to /dev/null. Do this if rsh should not inadvertently read from standard input.
SEE ALSO
rcp(1), rlogin(1), rhosts(5).
BUGS
You cannot run an interactive command (like rogue(6) or vi(1)); use rlogin(1).
4.2 Berkeley Distribution April 29, 1985 RSH(1)