I want to set up a cron task which will run at the specified time. I am aware of 01 * * * * root run-parts /etc/cron.hourly to run the jobs. However is there any way to run the tasks using unix timestamp directly?


I guess at will do the job. it's run once at a particular time

for more info: http://www.computerhope.com/unix/uat.htm

at doesn't support seconds so you have to use it with date command:

at `date -d @<timestamp> +"%I:%M %p %b %d"`
  • I wanted to use unixtimstamp, but at doesn't provide that option. – user2851669 Dec 11 '16 at 1:06
  • @user2851669 i edited my answer i hope this will do the job – Wissam Roujoulah Dec 11 '16 at 8:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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