delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/07/10/11:50:06

X-Spam-Check-By: sourceware.org
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Ao8CAJZGk0ZAaIw5/2dsb2JhbAA
X-IronPort-AV: i="4.16,523,1175452200"; d="scan'208"; a="83733141:sNHT46171788606"
MIME-Version: 1.0
Subject: Cygwin tar1.16.1 - stdout/stdin behaviour on windows
Date: Tue, 10 Jul 2007 21:19:27 +0530
Message-ID: <8EB00AB9BCE95E4DBADDDB25EBCBF95D037DA0B7@xmb-blr-418.apac.cisco.com>
From: "kavitha Bhasker -X (kbhasker - Infosys at Cisco)" <kbhasker AT cisco DOT com>
To: <cygwin AT cygwin DOT com>
Authentication-Results: ind-dkim-1; header.From=kbhasker AT cisco DOT com; dkim=pass ( sig from cisco.com/inddkim1002 verified; );
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id l6AFnsDF025385

Hi,
 
Iam using the Cygwin Tar version 1.16.1 on an Windows NT Server , I have
the following dll's copied to the same path as the tar.exe
From cygwin/1.5.24-2 :       cygiconv-2.dll         cygintl-8.dll
cygwin1.dll
 
Iam able to run the command : tar --forcelocal -cvf C:\\temp.tar
C:\\temp successfully.
 
However, the program I run , needs to do something more complicated like
:
 
1) tar -cvf - C:\\temp + Use Maverick J2SSH library to SFTP files from
stdout to stream the tar file to the  SFTP location 
 
and to later restore the files:
 
2) Use Maverick J2SSH library to SFTP files to stdin the tar file from
the  SFTP location + tar -xv - 
 
This works in Linux RH4.0 , when I use the standard /bin/tar . However,
just does not seem to work on Windows using the Cygwin Tar.exe
 
Command 1) works and am able to see the tar getting created on the SFTP
location.
 
However, am not able to tar -tvf on the file.Just gives blank response.
I cannot even open the .tar file created using winzip. Says Invalid Tar
file
 
Command 2) Just does not see to like stdin and refuses to extract the
file to the local directory
 
Please help.Is there any known issue with cygwin tar and stdout/stdin
behaviour on windows?
 
Thanks,
Kavitha

--
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