Re: touch madness

[ Available lists | Index of freebsd-questions | Month of Dec 2009 | Week of 30 Dec 2009 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Dimitar Vassilev <dimitar.vassilev@gmail.com>
Date
30 Dec 2009 15:11:34
Subject
Re: touch madness
Message-ID
59adc1a0912300711y2f9f1df7k3d4975d44e0fddd9@mail.gmail.com

In reply to

[ Hide this part ]
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


Elapsed time: 0.100 seconds