From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26132 invoked by alias); 3 Aug 2012 11:15:36 -0000 Received: (qmail 26117 invoked by uid 22791); 3 Aug 2012 11:15:34 -0000 X-SWARE-Spam-Status: No, hits=2.4 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_YE,RDNS_NONE X-Spam-Check-By: sourceware.org Received: from Unknown (HELO mailout-de.gmx.net) (213.165.64.23) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Fri, 03 Aug 2012 11:15:16 +0000 Received: (qmail invoked by alias); 03 Aug 2012 11:15:09 -0000 Received: from host-188-174-211-6.customer.m-online.net (EHLO [10.0.2.15]) [188.174.211.6] by mail.gmx.net (mp041) with SMTP; 03 Aug 2012 13:15:09 +0200 Message-ID: <501BB2B1.6060300@gmx.de> Date: Fri, 03 Aug 2012 11:15:00 -0000 From: Herbert Stocker User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 To: cygwin-xfree@cygwin.com Subject: Re: run bat file on remote Windows from Linux by using cygwin References: <501501343990884@web19h.yandex.ru> In-Reply-To: <501501343990884@web19h.yandex.ru> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-xfree-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-xfree-owner@cygwin.com Reply-To: cygwin-xfree@cygwin.com Mail-Followup-To: cygwin-xfree@cygwin.com X-SW-Source: 2012-08/txt/msg00005.txt.bz2 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/