Simple protocol for remote process startup/shutdown - protocols

I'm looking for a simple protocol to control remote processes from one managing application. The remote processes will run on Windows and Linux (x86).
Is there a simple protocol for managing remote processes, for which I could find daemons that run on both Windows and Linux?

I consider ssh to be the "Swiss-army knife" of remote administration. A custom script communicating over ssh can then do the process management. On Windows, I install ssh as part of Cygwin.

On windows you can use shutdown.exe \\remote_name [/y] [/c]
http://support.microsoft.com/kb/317371

Thanks Nathan.
Windows users can also use the following package instead of Cygwin: http://sshwindows.sourceforge.net/

Related

Is it possible to execute sh files GUI application from linux remote server and view it on local machine?

I have a job that runs denodo platform on remote server. Sh files is a GUI application, and I have to run it to start denodo service. I can't access it in windows, is there a way to solve these problems?
Already running sh files on Putty Windows, but only return null.
If it's a linux GUI application, you should "export display" to view the server screen on your workstation.
Depending of your workstation linux distribution, it might be as easy as :
xhost +<IP_address_of_workstation>
./runMyApp.sh
As your workstation is running windows operating system, you have do further configuration :
https://superuser.com/questions/325630/how-can-i-export-display-from-a-linux-terminal-to-a-windows-pc
https://seanthegeek.net/234/graphical-linux-applications-bash-ubuntu-windows/
If your workstation is connected through SSH you need even more configuration as discussed here : https://unix.stackexchange.com/questions/12755/how-to-forward-x-over-ssh-to-run-graphics-applications-remotely
You can run GUI-Applications of remote linux host in a windows client via ssh (putty) with x-forwarding and an installed x-server (xming)
See this question:
https://superuser.com/questions/299158/how-to-make-putty-do-the-equivalent-of-ssh-x

Is it possible to open X11 application in terminal of a server in linux?

I can launch X11 application through my local machine to X11 enabled server.
e.g. ssh -x from my localmachine(linux desktop) then launch a installed application from the minimal server.
I would like to know if it's possible to access my installed application directly from my minimal server. e.g. ssh -x ?
Thank you.
Not sure if it is useful but better you can use either Xming or Mobaxterm to get an X11 for a linux machine . Ultra VNC/VNC are also some of those kind .

How to copy files from windows to linux (cross platform)?

I want to trigger command/script from Linux environment which copies file from windows system to my Linux environment.
I have set up local Linux server for my web application. I am using WinSCP for file transfer and Putty as a console.
I want to automate the process of build deployment of Linux server.For that i have to copy build which is on my windows machine and paste it in my local Linux server so that i can deploy it.
As per my understanding, there should be some shared location which is accessible from Linux environment.
Is there is any script available for this? Also, please tell me the configuration changes require to do this.
You can use synchronize command of winscp from your windows,
winscp synchronize command
or winscp.exe command from your command prompt.
winscp.exe command
Install cygwin and you can use scp, ssh etc just like you would on linux. Besides, you can use ordinary bash scripts instead of crappy bat-files.
OR
http://www.codingepiphany.com/2014/01/13/batch-script-for-transferring-files-from-windows-machines-to-linux-file-server/
OR
Use samba
you can use rsync for synchronize your files. http://linux.die.net/man/1/rsync

WinRM scripting from Linux

How to write a Perl script that runs on Linux and is able to remotely execute a script on a Windows Server via WinRM given the local Administrator credentials?
I'm looking for sample code using a Perl library equivalent to this Ruby library for Windows Remote Management or this Python library for Windows Remote Management.
Have you tried openwsman? It has perl bindings and supports WinRM. Haven't used it myself though.
https://github.com/HugoMaza/WinRM-WinRSExec
It's Perl module that makes you able to remotely execute scripts on a Windows Server via WinRM.

SSH connection with NAnt script

Is there a way to make an ssh connection from a windows command line to a Linux machine not using putty?
The Idea is to be able to use NAnt to issue linux commands on the target Linux machine.
Yes. The Cygwin ssh client works from the Windows command line.
If you're looking to avoid any 3rd party tool besides nant, then no.

Resources