4

I want to schedule a file to run using the at command, as described in this tutorial. I see that the at command supports the posix format -- but I don't see any mention of timestamps. Surely it is possible to schedule a job at a given timestamp.

$ man at | grep timestamp
1
  • google epoch cron Feb 22, 2014 at 20:38

1 Answer 1

5

From usr/share/doc/at/timespec, it doesn't look like it. But you can always use date to convert your timestamp, eg:

at "$(date --date=@1393419435 +'%H:%M %D')"

date takes a timestamp in seconds, so don't forget to trim fractions of seconds if needed.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .