Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In crontab, I can use @reboot to run a command after the system reboot. Is there a way to do this with an delay, i.e. run a command after 10 minutes of reboot?

share|improve this question
up vote 12 down vote accepted

Use the following:

@reboot /bin/sleep 600 ; /path/to/your/your_program

This will suspend execution of the shell for 600 seconds, and then run /path/to/your/your_program. Depending on your SHELL used for cron commands, the command syntax might be different.

share|improve this answer

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.