Solved

How do I run script on remote Windows server from linux server?

Posted on 2013-11-26
3
450 Views
Last Modified: 2013-12-01
I have two different .cmd files that reside on a Windows Server 2003 box that I need a script that will kick them off from a linux server.  A backup that runs on the linux server needs to kick off these "pre" and "post" scripts on the remote Windows server.  So I need a pair of "pre" and "post" scripts to kick off their associated "pre" and "post" scripts on the remote Windows server.

Anyone done this before?
0
Comment
Question by:RhoSysAdmin
3 Comments
 
LVL 40

Accepted Solution

by:
omarfarid earned 500 total points
ID: 39679812
You can basically install an ssh server on windows and then use ssh from linux to windows to run commands on windows remotely.

Please find link below for ssh for windows:

http://sshwindows.sourceforge.net/

you could also install cygwin on windows with ssh server

http://www.cygwin.com/
0
 
LVL 27

Expert Comment

by:tliotta
ID: 39683226
You might also install a basic REXEC server on Windows. One REXEC server is available in the Microsoft Software Development Kit (SDK). Others are available for download from various sources. Linux should easily send requests via rexec() to a Windows REXEC server. The choice of what you might install could depend on your environment and security needs.

Tom
0
 

Author Comment

by:RhoSysAdmin
ID: 39688303
We'll give ssh a shot.

Thx!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
powershell backup 2 98
Backing Up Ipset 9 97
Windows 2012 Script / Batch to delete 1 year old files EXCEPT FOR files within a directory 11 50
AWS CLI issues with Tags 3 63
This Windows batch file is useful for organizing image files from a digital camera or other source, but can have many other uses.  It simply renames the file(s) to match their create date.  For example, if you took a picture today at 1:40pm and the …
Recently, an awarded photographer, Selina De Maeyer (http://www.selinademaeyer.com/), completed a photo shoot of a beautiful event (http://www.sintjacobantwerpen.be/verslag-en-fotoreportage-van-de-sacramentsprocessie-door-antwerpen#thumbnails) in An…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

911 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

20 Experts available now in Live!

Get 1:1 Help Now