public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
* run bat file on remote Windows from Linux by using cygwin
@ 2012-08-03 10:48 Klochnyk Yaroslav
  2012-08-03 11:15 ` Herbert Stocker
  0 siblings, 1 reply; 2+ messages in thread
From: Klochnyk Yaroslav @ 2012-08-03 10:48 UTC (permalink / raw)
  To: cygwin-xfree

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/


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: run bat file on remote Windows from Linux by using cygwin
  2012-08-03 10:48 run bat file on remote Windows from Linux by using cygwin Klochnyk Yaroslav
@ 2012-08-03 11:15 ` Herbert Stocker
  0 siblings, 0 replies; 2+ messages in thread
From: Herbert Stocker @ 2012-08-03 11:15 UTC (permalink / raw)
  To: cygwin-xfree

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/


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-08-03 11:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-03 10:48 run bat file on remote Windows from Linux by using cygwin Klochnyk Yaroslav
2012-08-03 11:15 ` Herbert Stocker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).