From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6395 invoked by alias); 2 Dec 2011 18:43:11 -0000 Received: (qmail 6380 invoked by uid 22791); 2 Dec 2011 18:43:09 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from sam.nabble.com (HELO sam.nabble.com) (216.139.236.26) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 02 Dec 2011 18:42:57 +0000 Received: from isper.nabble.com ([192.168.236.156]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1RWY4W-0007UB-MK for cygwin@cygwin.com; Fri, 02 Dec 2011 10:42:56 -0800 Message-ID: <32904332.post@talk.nabble.com> Date: Fri, 02 Dec 2011 18:43:00 -0000 From: ajshower To: cygwin@cygwin.com Subject: Re: Redirecting output from running proc doesn't modify the "last modified time" field for target file In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit References: <32903475.post@talk.nabble.com> X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2011-12/txt/msg00027.txt.bz2 >IMHO, this is a very dubious "feature" to depend upon. If you want to >know if the file has changed, why not check its length instead? I have switched to using the length instead but I was interested in what people thought of the issue. I'm having trouble reproducing this using just Cygwin so I'm not presenting the problem accurately. My process is to call Runtime.getRuntime.exec() within a java process which opens cygwin/bin/bash.exe and then runs the redirection command from within the bash. From the same java process that called exec(), I'm trying to monitor the last modified time based on what's going on in the previously called bash.exe. That does sound pretty convoluted. I guess it's some kind of scope problem, but checking length() is working, so it's all moot anyway. I'll close this thread. -Alex -- View this message in context: http://old.nabble.com/Redirecting-output-from-running-proc-doesn%27t-modify-the-%22last-modified-time%22-field-for-target-file-tp32903475p32904332.html Sent from the Cygwin list mailing list archive at Nabble.com. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple