X-Spam-Check-By: sourceware.org Message-ID: <4693B66B.8070706@cygwin.com> Date: Tue, 10 Jul 2007 12:40:11 -0400 From: "Larry Hall (Cygwin)" Reply-To: cygwin AT cygwin DOT com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20070505 Remi/2.0.0.0-3.fc4.remi Thunderbird/2.0.0.0 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Cygwin tar1.16.1 - stdout/stdin behaviour on windows References: <8EB00AB9BCE95E4DBADDDB25EBCBF95D037DA0B7 AT xmb-blr-418 DOT apac DOT cisco DOT com> In-Reply-To: <8EB00AB9BCE95E4DBADDDB25EBCBF95D037DA0B7@xmb-blr-418.apac.cisco.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 kavitha Bhasker -X (kbhasker - Infosys at Cisco) wrote: > 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 Copying the Cygwin DLLs to directories other than those to which they were installed is _highly_ discouraged. You're using a non-standard installation which means you're basically "on your own" as far as this list is concerned. This list can really only respond to problems with standard installations, given the shear number of variables in the non- standard cases. > 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? Perhaps trying the same thing with Cygwin ssh/sftp would provide you some insight? -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- 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/