Skip to main content
replaced http://raspberrypi.stackexchange.com/ with https://raspberrypi.stackexchange.com/
Source Link

Please check the link on how to run a command on boot using cron. That should help you to start your binary on boot.

How to write a initial script and let it run a command automaticallyHow to write a initial script and let it run a command automatically

sudo crontab -e @reboot /home/pi/temp_logger/temp_logger 

This should be sufficient to run your cron job and I don't think you need that

"./temp_logger"

Also you don't need the "&". This is generally used to put a process in background. The only thing that you need to take care should be proper logging to debug in case of failures. I hope you have done that.

Please check the link on how to run a command on boot using cron. That should help you to start your binary on boot.

How to write a initial script and let it run a command automatically

sudo crontab -e @reboot /home/pi/temp_logger/temp_logger 

This should be sufficient to run your cron job and I don't think you need that

"./temp_logger"

Also you don't need the "&". This is generally used to put a process in background. The only thing that you need to take care should be proper logging to debug in case of failures. I hope you have done that.

Please check the link on how to run a command on boot using cron. That should help you to start your binary on boot.

How to write a initial script and let it run a command automatically

sudo crontab -e @reboot /home/pi/temp_logger/temp_logger 

This should be sufficient to run your cron job and I don't think you need that

"./temp_logger"

Also you don't need the "&". This is generally used to put a process in background. The only thing that you need to take care should be proper logging to debug in case of failures. I hope you have done that.

edited as per suggestion in the comments section.
Source Link
Varad A G
  • 850
  • 6
  • 18

Please check the link on how to run a command on boot using cron. That should help you to start your binary on boot.

How to write a initial script and let it run a command automatically

sudo crontab -e @reboot /home/pi/temp_logger/temp_logger 

This should be sufficient to run your cron job and I don't think you need that

"./temp_logger"

Also you don't need the "&". This is generally used to put a process in background. The only thing that you need to take care should be proper logging to debug in case of failures. I hope you have done that.

Please check the link on how to run a command on boot using cron. That should help you to start your binary on boot.

How to write a initial script and let it run a command automatically

Please check the link on how to run a command on boot using cron. That should help you to start your binary on boot.

How to write a initial script and let it run a command automatically

sudo crontab -e @reboot /home/pi/temp_logger/temp_logger 

This should be sufficient to run your cron job and I don't think you need that

"./temp_logger"

Also you don't need the "&". This is generally used to put a process in background. The only thing that you need to take care should be proper logging to debug in case of failures. I hope you have done that.

Source Link
Varad A G
  • 850
  • 6
  • 18

Please check the link on how to run a command on boot using cron. That should help you to start your binary on boot.

How to write a initial script and let it run a command automatically