Further to the above, I have noticed that if the terminal window is closed the program stops. When I re-open the terminal window there is the usual warning "This channel is already in use, continuing anyway" and the program continues to run as it should. It may be normal but it's not what I wanted. ...