open a window on 2 displays...
hi,
is there a way to open a window on a computer (let's call it "client") and have it running (and controllable) on another machine ("server"). here is my actual crontab command: Code:
export DISPLAY=:0 && gnome-terminal -x bash -c 'ssh -t server "script.sh; exit"' i'd like to have gnome-terminal opened and controllable on both client and server, and to keep it alive if client shuts down... any hint? thanks! |
That terminal is only running on one machine. Based on what you've written, it's running on the client as a remote terminal to the server. So yes, if the client shuts down or detaches from the server network, this shuts down. The only way I know of to do this is to take remote control over one machine, have the server side of the remote control not lock it's screen during remote control, and then you have the client typing commands which are executed by the server. Someone can sit at the server and view or intervene; providing the remote control session settings allow this. If the client shuts down or disconnects, the remote control session is merely closed, leaving the open windows and such at the server, still open.
|
sg like this:
Code:
1. crontab: ssh server command >/tmp/remote_program_local.log 2>&1 |
You can use screen, tmux or dtach for that. It will allow you to run a command on server and then whenever you log in bring up the running command.
|
All times are GMT -5. The time now is 09:49 PM. |