Solved

Remote command to NT from UNIX

Posted on 1997-08-06
2
776 Views
Last Modified: 2013-12-14
I have an NT program which performs file manipulation.  I am running a program on Digital UNIX (Dec Alpha) and require that this NT program be kicked off by the Digital Unix program and can not continue until the NT program has terminated.  It is a real time program.  Accessing the file from NT side is not a problem, my problem is sending a remote command to NT from Digital Unix telling it to run this file manipulation package on a filename I specify.

Any suggestions on how to do this?  Any input would be greatly appreciated.

-Joe Chickanosky
0
Comment
Question by:joechick
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Expert Comment

by:moosach
ID: 1767863
Hi,

you should try to get the hand on the NT 4.0 Server Resource Kit.
(I hope you have NT 4.0)
It contains a service called RSHSVC which should do what you want. See below the (original html-)description from Resource Kit.

If this message is helpful, please let me know to make an answer from it.

Regards

Toni

........................................................


Remote Shell Service (RSHSVC)




What is Remote Shell Service (RSHSVC)?
Installing Remote Shell Service
Security
Limitations
Feedback

What is Remote Shell Service (RSHSVC)?

Remote Shell Service is the server side for the TCP/IP utility RSH.EXE. It works similarly to the UNIX Remote Shell Service. RSH clients can access this service from both NT and UNIX machines.


Installing Remote Shell Service

1.Copy RSHSETUP.EXE, RSHSVC.EXE, and RSHSVC.DLL to the %SYSTEMROOT%\SYSTEM32 directory.

2.Run the following commands:
rshsetup %SystemRoot%\system32\rshsvc.exe SystemRoot%\system32\rshsvc.dll

net start rshsvc


To Stop the Service, run:

net stop rshsvc


Security

The .rhosts file must be in the SYSTEMROOT%\SYSTEM32\DRIVERS\ETC\ directory. The .rhosts file should have one or more of the following type of entry (each entry should be on one line):


<M1> <U1> [<U2> <U3> ....]

where:

M1 is the name of the machine from which RSH client can be run.

U1, U2, U3 ... are names of the users that are permitted to access the Remote Shell Service.


RSHSVC returns "Access denied" message under the following conditions:

1.The RSH client machine name is not specified in the .rhosts file.

2.The name of the logged-on user on the RSH client machine is not present in the .rhosts files.


3.RHSVC (using GetHostByName) failed to resolve the IP address of a machine specifed in the .rhosts files and a user is trying to access this service from that machine.


Limitations

1.Although this service can be used to start batch files of the following types:
•dir •ls •tlist
it may not work well if you try to start command windows in batch files, as in the following examples:
start cmd
start cmd vi

2.Neither the RSH client nor the RSH service are meant to be used for running interactive commands such as editing utilities.



3.If you try to start interactive editors, such as vi, using this service, the RSH client will time out after a specified period. This timeout period is currently hard coded to 10 minutes. In a future version, the timeout period will be made a Registry key so that users can change it.



4.When the client tries to start a command, the RSH server waits for a specified period while the command executes before timing out. This timeout period is currently hard coded to 10 minutes. This limitation means that the client can not execute a command that takes more than 10 minutes to complete. In a future version, the timeout period will be made a Registry key so that users can change it.



Feedback


If the user of this service has any feedback or suggestions, please send mail to SudheerD@microsoft.com.




------------------------------------------------------------------------




<Picture: [contents]><Picture: [up]>




Best viewed with Microsoft Internet Explorer 2.0.  Last updated March 27, 1996.
Copyright © Microsoft Corp. 1995 - 1996



0
 
LVL 1

Accepted Solution

by:
shepherds earned 50 total points
ID: 1767864
Install the inbound telnet service found on the resource kit
or download it from ftp at microsoft.
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
In this post we will be converting StringData saved within a text file into a hash table. This can be further used in a PowerShell script for replacing settings that are dynamic in nature from environment to environment.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Suggested Courses

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question