How Run a Linux command after every reboot

image

open the cron file in editable mode and add the following

$crontab -e

@reboot /home/xyz/myscript.sh

 

Please remember to enable crond on reboot.

No comments:

Post a Comment