This is the mail archive of the cygwin-xfree mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: run bat file on remote Windows from Linux by using cygwin


Ah, this is something i can answer.

- Innstall Cygwin on the windows machine and there, install the package 'openssh'.

- Howtos like this help me to configure the ssh server: http://www.noah.org/ssh/cygwin-sshd.html
(It comes down to running the command ssh-host-config -y .)


- Then you can use ssh from the linux box to execute commands on the windows box or
to transfer files or to log-in remotely.


Some Tips:
Maybe you will be happy to learn that with Cygwin you are not limitted to bat "scripts",
but have the full power of bash or other shells available on Windows.


Depending on what you want to do, you may notice that processes running via sshd will
not have every resource available that a process running from a GUI-logged in user has.
In my case it was the mapped network drives that could not be seen. I could solved this
by using the 'screen' tool (starting a screen session from a GUI session (RDP) and then
connecting to this via ssh). Other means of Windows may be better tools, e.g. the net
command contained in Windows.


Herbert



On 03.08.2012 12:48, Klochnyk Yaroslav wrote:
I am working on continious integration process and I am using Linux platform for my Jenkins  but now I need to run bat file on remote pc(Windows) to start automation tests processing and send report. Can I/How to do it by using Cygwin (just run bat file remoutly from Linux on Windows)
Thank's for support.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]