run_program_at_boot_using_cron
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
run_program_at_boot_using_cron [2017/01/31 17:14] – [Run Program at Boot using Cron] walkeradmin | run_program_at_boot_using_cron [2023/03/09 22:35] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 19: | Line 19: | ||
\\ | \\ | ||
To avoid putting loads of commands in to Cron, its best to group them all in to a file, then just reference that file in Cron. For this example we will make a file called <color red> | To avoid putting loads of commands in to Cron, its best to group them all in to a file, then just reference that file in Cron. For this example we will make a file called <color red> | ||
- | \\ | ||
\\ | \\ | ||
Line 64: | Line 63: | ||
sudo chmod 755 launcher.sh | sudo chmod 755 launcher.sh | ||
</ | </ | ||
- | \\ | ||
---- | ---- | ||
Line 108: | Line 106: | ||
@reboot sh / | @reboot sh / | ||
</ | </ | ||
- | \\ | ||
\\ | \\ | ||
When you boot/reboot your Raspberry Pi, this will now run the launcher.sh, | When you boot/reboot your Raspberry Pi, this will now run the launcher.sh, |
run_program_at_boot_using_cron.1485882840.txt.gz · Last modified: 2023/03/09 22:35 (external edit)