Dave’s Brain
Home
Search
Browse
Recent
Keywords
Other sites
Feedback
Sign in
Random
Crawlers
Computer Tips
- Linux: How can I run a script as a certain user when my computer reboots?
Date:
2015mar27
OS:
Linux
Q.
Linux: How can I run a script as a certain 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