0

I'm on Machine A and am SSHing into a headless remote host Machine B. (Ubuntu 14.10 Server.) I have several scripts that I wish to run. However, they will occupy my session window. These scripts are not interactive but instead monitor the activity of different devices across my network. Instead of running multiple simultaneous SSH sessions I would like the each script that I invoke to open a new window on Machine A. The script does not assemble a GUI to use which leads me to believe that I couldn't just use X11-Forwarding and call it via $ /path/to/script/foo.sh &.

Is this possible to do?

0

1 Answer 1

0

two solutions. First, before starting your script, run 'DISPLAY=:0.0' . Hope I got this right. Can't look it up right now. Second solution. Open a screen terminal from the local host and when you tunnel in, then connect to the screen session. Hope that helps

1
  • Whew this is late. Ok, I tried the DISPLAY=.0.0 command but that disabled my X-forwarding. I had to change it back to DISPLAY=10.0. I don't quite understand the second part of 'connect to the screen session.' Is this some screen -x foo command? Aug 5, 2015 at 22:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .