Thứ Ba, 27 tháng 1, 2015

Ubuntu: How to run scripts on start up?

1>

One approach is to add an @reboot cron task:

    Running crontab -e will allow you to edit your cron.

    Adding a line like this to it:

    @reboot /path/to/script

    will execute that script once your computer boots up.


2>

How about adding the command to /etc/rc.local? you'll have to use sudo access though to edit this file.

sudo nano /etc/rc.local

Share This!


Không có nhận xét nào:

Đăng nhận xét