From owner-freebsd-questions@FreeBSD.ORG Tue Jul 15 23:46:04 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3D19D37B401 for ; Tue, 15 Jul 2003 23:46:04 -0700 (PDT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.177]) by mx1.FreeBSD.org (Postfix) with ESMTP id 89B0143F93 for ; Tue, 15 Jul 2003 23:46:03 -0700 (PDT) (envelope-from jan.muenther@nruns.com) Received: from [212.227.126.202] (helo=mrvnet.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 19cg38-0005k2-00 for freebsd-questions@freebsd.org; Wed, 16 Jul 2003 08:46:02 +0200 Received: from [172.23.4.142] (helo=config15.kundenserver.de) by mrvnet.kundenserver.de with esmtp (Exim 3.35 #1) id 19cg38-00081t-00 for freebsd-questions@freebsd.org; Wed, 16 Jul 2003 08:46:02 +0200 Received: from www-data by config15.kundenserver.de with local (Exim 3.35 #1 (Debian)) id 19cg37-0002um-00 for ; Wed, 16 Jul 2003 08:46:01 +0200 To: freebsd-questions@freebsd.org From: Message-Id: <6445542$10583376783f14f38e349f79.75917408@config15.schlund.de> X-Binford: 6100 (more power) X-Originating-From: 6445542 X-Mailer: Kundenserver.de Webmail X-Received: from config15.schlund.de by 53.122.192.14 with HTTP id 6445542 for freebsd-questions@freebsd.org; Wed, 16 Jul 2003 08:44:02 +0200 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 Date: Wed, 16 Jul 2003 08:44:02 +0200 Subject: Re: getting the mdate of a file X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jul 2003 06:46:04 -0000 Hello, > So, question 1 is how do I get the last mod date of a file? if you're running 4.x, you could install the /usr/ports/sysutils/stat port - it's in base in 5.x. Gives you the MAC times of any given file. > > Question 2 is, is there a better way that I'm missing? See Dan's answer. Cheers, Jan