Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 Content-Type: text/plain; charset="iso-8859-1" Subject: Problem with OpenSSH build 3.6.1p1-2 on Win2k- Cygwin ver 1.3.22-1 2nd Post Date: Fri, 22 Aug 2003 09:31:20 -0400 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Follano, Gerard (OFT)" To: X-OriginalArrivalTime: 22 Aug 2003 13:31:29.0898 (UTC) FILETIME=[B1DBD4A0:01C368B1] Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id h7MDVme31808 [Follano, Gerard ] Anybody? > > 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/