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

I want to set a script that will only run one time on a Centos 6.x box and then never run again, since it's going to set some system options based on hardware and then it's all set.

share|improve this question
See… for some suggestions. – Daniel Andersson Sep 12 '13 at 15:09

The answers over on Server Fault are very good. For an even simpler version you could either i) just run the script yourself once. or ii) add a @reboot cron and then delete it:

echo "@reboot root && sed -i '/NAME/d' /etc/crontab" >> /etc/crontab
share|improve this answer

Your Answer


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.