Solved

Executing commands remotely to NT from Linux

Posted on 2004-03-30
6
650 Views
Last Modified: 2010-04-13
I want to execute some commands from a remote Linux system to an NT system. I know there is a way to do this from NT to NT (but I can't remember the Microsoft name for this). But I need to do it from a Linux system. Any ideas?
0
Comment
Question by:ESQuicksall
  • 4
  • 2
6 Comments
 
LVL 67

Expert Comment

by:sirbounty
ID: 10716616
Rexec
0
 
LVL 67

Expert Comment

by:sirbounty
ID: 10716628
http://www.denicomp.com/readmore.htm
>>
What is REXEC?
rexec stands for remote exec and like rsh, allows you to execute non-interactive programs on another system.  The difference between rsh and rexec is that rexec requires you to specify a valid password for the other system and rsh does not.

The other system must be running a remote exec daemon (rexecd) to handle the incoming rexec command.  Most Unix and Linux systems include a remote exec daemon, but Windows does not.  Use Denicomp's Winsock REXECD/95 or Winsock REXECD/NT software if you want to rexec into a Windows system.
<<
0
 
LVL 67

Expert Comment

by:sirbounty
ID: 10716641
But, I suppose RSH may be what you're after...depends on what you're wanting to do...
From the same link:
>>
What is RSH?
rsh stands for remote shell and allows you to execute non-interactive programs on another system. On some systems, this command is sometimes called remsh or rcmd.  It executes the command on the other system and returns the program's standard output and standard error output.

The other system must be running a remote shell daemon (rshd) to handle the incoming rsh command.  Unix and Linux systems include a remote shell daemon, but Windows does not.  Use Denicomp's Winsock RSHD/95 or Winsock RSHD/NT software if you want to rsh to a Windows system.

The rsh command does not require you to enter a password for the other system. Trust is established by defining host equivalency.
<< 
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 

Author Comment

by:ESQuicksall
ID: 10716687
Microsoft says this "An RSH service called Rshsvc.exe is provided with the Windows 2000 Server Resource Kit. Used without parameters, rsh displays help."

Does this mean I can use REXEC on Linux and Window's RSH to execute programs on Windows from Linux?

Eddy
0
 

Author Comment

by:ESQuicksall
ID: 10716759
I mean, use REXEC on Linux to submit commands to Window's Rshsvc.exe?
0
 
LVL 67

Accepted Solution

by:
sirbounty earned 50 total points
ID: 10716844
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
With more and more people tethered to the internet, advertisers can reach you in new and creative ways. Push notifications on your smartphone, customized advertisements based on your previous searches, and email inboxes filled with promotional pitch…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…

947 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now