I am trying to execute my program when my Raspberry Pi boots up with time sleep 10.
it workt only with time sleep: "time sleep 10 && ./DotNetConsoleApps/Tinkerforge/helloweatherstation" enter image description here
but it didn ́t work when i try to start it on the Raspberry boot. Like this: "@reboot time sleep 10 && ./DotNetConsoleApps/Tinkerforge/helloweatherstation" enter image description here I need your help please
1 Answer 1
Your comments suggest that you've tried using an @reboot
command in your crontab
. The syntax you've used might be an issue. You might try again using the following syntax:
@reboot ( /bin/sleep 30; /full/path/to/your/app > /home/pi/cronjoblog 2>&1)
See this answer if you need an explanation of this statement.
/etc/rc.local
has limitations due to Compatibility with SysV. We have seen many problems here on this site using it. Following the recommendation of the developers from systemd you should avoid using it.