Page 1 of 1

Bash script question

Posted: Fri Feb 06, 2015 3:07 pm
by Jpanu
Hello all.

i have put on rc.local a line that starts my script (sleep 10;su - pi -c "/automaatio/startup.script") &
on that startup.script i start few of my scripts, BUT question is: why does not this line(on that startup.script) start: ping :/bin/ping 192.168.1.101 > /dev/null & (this is a keepalive only).

Re: Bash script question

Posted: Fri Feb 06, 2015 4:01 pm
by DirkS
What exactly is the ping command you put in rc.local?
That's not clear from your post.

Re: Bash script question

Posted: Fri Feb 06, 2015 7:52 pm
by Jpanu
rc.local has a line :
(sleep 10;su - pi -c "/automaatio/startup.script") &

then on this startup.script are:

source /automaatio/living.script &
/bin/ping 192.168.1.101 > /dev/null &
source /automaatio/temperature.script &
exit 0

that living.script and temperature.script starts ok. but not that ping.

edit: if i run this startup script manually, then ping works ok.

Re: Bash script question

Posted: Tue Feb 17, 2015 12:27 pm
by -rst-
Try redirecting the ping output to a log file to see if there are issues?