1

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

8
  • 1
    This question is not Pi specific. I suggest you search for crontab and make a crontab entry.
    – joan
    Commented Nov 14, 2019 at 15:09
  • 1
    Thanks for your Answer, but i have already tried crontab and no Autostart after i reboot the Raspberry.
    – Gerard
    Commented Nov 15, 2019 at 7:29
  • 1
    like this crontab -e
    – Gerard
    Commented Nov 15, 2019 at 7:30
  • 1
    You need to sort out why crontab did not work. If you look through starting programs at boot questions you should soon find an answer.
    – joan
    Commented Nov 15, 2019 at 9:10
  • 2
    Please don't use pictures of text. Instead paste the text direct into the question. And please take note that using /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.
    – Ingo
    Commented Nov 15, 2019 at 17:14

1 Answer 1

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.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.