manipulating/testing file times.

David Collier from_busybox_maillist at dexdyne.com
Fri Nov 26 10:00:00 UTC 2010


Possibly a bad place to ask, but I'm trying to do stuff in busybox/ash
which involves time delays, or rather "alarms".

I could do it with lots of little processes just sitting there going
"sleep 34600", but it isn't very elegant.

One idea I have is to touch a file, but set it's date to say, 3 days in
the future. then use if[ ... -ot ] to trigger my action.

Can anyone tell me if there is anything around as standard that might
allow me to do the equivalent of

touch /tmp/fred "+3days"

if not, has anyone seen a utility for this sort of stuff?

D


More information about the busybox mailing list