Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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
share|improve this question
    
google epoch cron –  Mohsen Pahlevanzadeh Feb 22 at 20:38
add comment

1 Answer

up vote 3 down vote accepted

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 +'%D %T')"

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.