0
#! /bin/sh -e
cd /home/pi/projects/3._Raspberry_Client/bin/ARM/Debug
while true;
do
  ./3._Raspberry_Client.out
  sleep 3s
done

I want to start program when it be killed.

So, I make shell script; like sample.

If Run it on bash and do kill -9 something, it perfectly works.

But I want to run this shell script on startup.

I set it in /etc/xdg/lxsession/LXDE-pi/autostart.

like,

./Client_Boot.sh (this is in /home/pi)

then I reboot, shell script works.

But If I kill the program, shell script is also being killed too.

Why this happens? And What should I do?

Thanks for your kindness. And Sry to Bad English.

Retalia K
  • 64
  • 9

0 Answers0