Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Dec 2009 17:11:26 +0200
From:      Dimitar Vassilev <dimitar.vassilev@gmail.com>
To:        Brad Mettee <bmettee@pchotshots.com>
Cc:        FreeBSD Questions <questions@freebsd.org>
Subject:   Re: touch madness
Message-ID:  <59adc1a0912300711y2f9f1df7k3d4975d44e0fddd9@mail.gmail.com>
In-Reply-To: <4B3B6D17.80200@pchotshots.com>
References:  <59adc1a0912300621r590a8216u77eb2c25b3494905@mail.gmail.com> <4B3B6D17.80200@pchotshots.com>

next in thread | previous in thread | raw e-mail | index | archive | help
2009/12/30 Brad Mettee <bmettee@pchotshots.com>

> 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 <http://www.pchotshots.com>; for information about our company.
>

thanks to all - tried with inserting measure units hours minutes and so on
1st time.
Without them it works



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?59adc1a0912300711y2f9f1df7k3d4975d44e0fddd9>