delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/08/13/15:34:33

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0
content-class: urn:content-classes:message
MIME-Version: 1.0
Subject: FW: Problem with OpenSSH build 3.6.1p1-2 on Win2k- Cygwin ver 1.3.22-1
Date: Wed, 13 Aug 2003 15:34:04 -0400
Message-ID: <FB9BD16DFCFAD2449B4AB3749188EBF2555719@excnysm0a1aa.nysemail.nyenet>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
From: "Follano, Gerard (OFT)" <Gerard DOT Follano AT oft DOT state DOT ny DOT us>
To: <cygwin AT cygwin DOT com>
X-OriginalArrivalTime: 13 Aug 2003 19:34:26.0283 (UTC) FILETIME=[E7E0BBB0:01C361D1]
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id h7DJYVd05210

> Hi All,
> I was previously running version 3.5p1-2 with cygwin 1.3.18-1 with no issues. Upgrading to the level mentioned above broke several CMD scripts that run "mixed" mode, by this I mean they run a combination of WINNT and CYGWIN binaries(example below). I call the script via plink like so: plink myname AT myhost -i mykey.ppk -2 cmd /c c:\scripts
> myscript.bat. It seems the switch in shells renders me incapable of calling cygwin binaries in an ssh session. A local bash session on the target machine executes the script correctly. Replacing the new sshd binary with the previous version also corrects the problem. Any ideas?
> 
> 
> 
> ******************************EXAMPLE SCRIPT*****************************************
> @echo off
> cd \temp\logs
> for /f %%I in ('\cygwin\bin\date ^+%%m%%d%%y') do set ZIP_NAME=%%I
> for /f %%I in ('\cygwin\bin\date ^+%%y%%m%%d') do set W3_NAME=%%I
> for /f %%I in ('\cygwin\bin\date ^+%%b') do set MTH=%%I
> for /f %%I in ('\cygwin\bin\date ^+%%m') do set NM_MTH=%%I
> for /f %%I in ('\cygwin\bin\date ^+%%d') do set DAY=%%I
> for /f %%I in ('\cygwin\bin\date ^+%%Y') do set YR=%%I
> dir /b >..\dir.txt
> for /f  %%x IN (..\dir.txt) DO (
> rmdir /q /s %%x
> )
> @echo %ZIP_NAME%
> @echo %MTH%
> @echo %DAY%
> @echo %YR%
> @echo %NM_MTH%

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019