From owner-freebsd-questions@FreeBSD.ORG Wed Dec 30 15:09:12 2009 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C0798106566C for ; Wed, 30 Dec 2009 15:09:12 +0000 (UTC) (envelope-from bmettee@pchotshots.com) Received: from mail.pchotshots.com (ns1.pchotshots.com [12.172.123.235]) by mx1.freebsd.org (Postfix) with SMTP id 5C7208FC08 for ; Wed, 30 Dec 2009 15:09:12 +0000 (UTC) Received: (qmail 58343 invoked by uid 89); 30 Dec 2009 15:13:27 -0000 Received: from unknown (HELO ?12.172.123.228?) (bmettee@pchotshots.com@12.172.123.228) by mail.pchotshots.com with SMTP; 30 Dec 2009 15:13:27 -0000 Message-ID: <4B3B6D17.80200@pchotshots.com> Date: Wed, 30 Dec 2009 10:09:11 -0500 From: Brad Mettee User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Dimitar Vassilev References: <59adc1a0912300621r590a8216u77eb2c25b3494905@mail.gmail.com> In-Reply-To: <59adc1a0912300621r590a8216u77eb2c25b3494905@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD Questions Subject: Re: touch madness X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Dec 2009 15:09:12 -0000 Based on the man page for touch, it doesn't use the d/m/s flags. Your line should be touch -A -000430 filename.here Which would be subtract 0 hours, 4 minutes and 30 seconds from current time of the file. I created test file, checked time of it, subtracted N minutes to make it even to the hour and it worked as described. Dimitar Vassilev wrote: > Hi, > I'm trying to find the match for touch -d now-5minutes+30seconds under > freebsd. > Got a munin plugin that i'd like to change without installing the emulator > port. > I have touch -A, however when i pass touch -A -00d04m30s i don't get > anything as a file. > Can someone give the exact syntax if possible. > Thanks and all the best. > Dimitar > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > -- Brad Mettee PC HotShots, Inc. Baltimore, MD (410) 426-7617 -> Let us bring out the **Power** of your PCs. <- -> Custom Business Software Solutions since 1991 <- Visit us for information about our company.