S
S
Sergei Iamskoi2017-11-09 11:40:24
linux
Sergei Iamskoi, 2017-11-09 11:40:24

How to run a script on a remote screen via ssh?

I have a RaspberryPi3 with Raspbian installed. The task is this: run a Bash script via ssh, but the output would not be in the ssh terminal, but on the desktop of the remote machine. With graphics programs this can be done via export DISPLAY:=0 , but what about console output?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Grishin, 2017-11-09
@syamskoy

Run xterm with a command, it will pick up DISPLAY and display on local x's, and the output of the console command will display in xterm. You can get to the console if you redirect the output to /dev/ttyXX which is responsible for the console, or /dev/console, but artifacts are possible.

R
Rastachiter, 2017-11-09
@Rastachiter

ssh x11

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question