I have created a bash file which I call from the
/etc/rc.local. The details are as follows:
# !/bin/sh tmux new-session -d -s piSession tmux new-window -d -n 'alfredHere' -t piSession:1 'alfred --interface wlan0' # the line above doesn't get executed when called from /etc/rc.local tmux new-window -d -n 'batvisHere' -t piSession:2 'batadv-vis -s'
the above bash file is in
When I do the following
tmux ls I only get 2 Windows where infact I am expecting 3 (1 x alfred running + 1 x batadv-vis running + 1 normal)
when I do the following
tmux attach I do not see the
alfred --interface wlan0 at all and the only other window open (except a common terminal session) is running
Why is the line getting skipped or not being executed?
when I run the script from the
/home/pi/ folder as following:
bash /home/pi/path/myScript.sh tmux ls
It shows 3 Windows and then everything works perfectly. Why isn't it triggering the 2nd line in case of a call from