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

asked Nov 14, 2019 at 14:52
8
  • 1
    This question is not Pi specific. I suggest you search for crontab and make a crontab entry. 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. Commented Nov 15, 2019 at 7:29
  • 1
    like this crontab -e 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. 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. 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.

answered Nov 17, 2019 at 1:29
0

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.