From owner-freebsd-questions@FreeBSD.ORG Fri Jun 6 20:56:50 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6D07710656B8 for ; Fri, 6 Jun 2008 20:56:50 +0000 (UTC) (envelope-from bill@ayn.mi.celestial.com) Received: from ayn.mi.celestial.com (hayek.celestial.com [192.136.111.12]) by mx1.freebsd.org (Postfix) with ESMTP id DD26F8FC20 for ; Fri, 6 Jun 2008 20:56:49 +0000 (UTC) (envelope-from bill@ayn.mi.celestial.com) Received: from localhost (localhost [127.0.0.1]) by ayn.mi.celestial.com (Postfix) with ESMTP id C3FB168610B54; Fri, 6 Jun 2008 13:28:54 -0700 (PDT) X-Virus-Scanned: amavisd-new at mi.celestial.com Received: from ayn.mi.celestial.com ([127.0.0.1]) by localhost (ayn.mi.celestial.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id UD+5JW0JFB2S; Fri, 6 Jun 2008 13:28:54 -0700 (PDT) Received: by ayn.mi.celestial.com (Postfix, from userid 203) id AADAA6800E985; Fri, 6 Jun 2008 13:28:54 -0700 (PDT) Date: Fri, 6 Jun 2008 13:28:54 -0700 From: Bill Campbell To: freebsd-questions@freebsd.org Message-ID: <20080606202854.GA15570@ayn.mi.celestial.com> Mail-Followup-To: freebsd-questions@freebsd.org References: <48497315.5020804@bas.bg> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48497315.5020804@bas.bg> User-Agent: Mutt/1.5.11 OpenPKG/2.5 Subject: Re: change the file date and time X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd@celestial.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Jun 2008 20:56:50 -0000 On Fri, Jun 06, 2008, Georgi Tyuliev wrote: >Dear Sirs >1. How to mount Sony Ericsson k750i mobile phone with FreeBSD 7.0 ? >2. How to change automatically the file attributes (for example 'date') >of large number of files? >For example: I have taken many photos with my Sony Ericsson k750i mobile >phone and >the exact time end date is accessible (e.g. through F3 of the midnight >commander), >but very often when copying the jpg's the file attributes change. man utime man touch You can set the access and modification times of any file or directory directly with the utime(2) system call. This can be done from scripting languages such as python or perl, without having to write C programs. The ``touch'' command can change the modification times from any shell program, which may be all you need. Bill -- INTERNET: bill@celestial.com Bill Campbell; Celestial Software LLC URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way Voice: (206) 236-1676 Mercer Island, WA 98040-0820 Fax: (206) 232-9186 Intaxication: Euphoria at getting a refund from the IRS, which lasts until you realize it was your money to start with.