#!/usr/bin/sh while : do python3 '/opt/LibreLight/ASP/monitor/oszi_grid.py' PS1="X:" PS1="$PS1 $(ip netns identify $$)" export PS1 echo "execute some command or, exit shell and restart loop with " sh echo "Press to exit. in 1sec to exit screen loop" sleep 5 done