Dave's Brain

Browse - Computer Tips - How can I run a script as a certian user when my computer reboots?

Date: 2015mar27
OS: Linux

Q.  How can I run a script as a certian user when my computer reboots?

A.  cron supports this.  Just run:

crontab -e
As the user you want and add:
@reboot <command>
for example:
@reboot echo We rebooted

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.