How to display the execution result in remote linux screen(command input via ssh)? -


Everyone:

I need to connect to remote Linux, I already know How to run and display the GUI program in Remote Linux It can be:

  ssh username @ ip export DISPLAY =: 0.0 Firefox & amp;   

However, my goal is not to have X Window System in Linux, I need to display the performance results in the remote Linux's screen, for example:

My PC A, the remote PC is B

After connecting to a use SH Access B, B, I type LS in A and press Enter

Display the results in B's screen Need (TTI or whatever, I do not know what to say Should be)

Any ideas? Thanks for your help.

Basic Thoughts:

  $ ssh user @bb $ run -programm & gt; / Dev / console   

(I use the command $ and b $ respectively to open A and B .)

Its problem:

  b $ ls -l / dev / console crw ------- 1 root root 5 only 1/9 9: 10 / dev / console   

can only write to root / dev / console .

Possible solutions:

  $ b run-program | Sudo tee / dev / console & gt; / Dev / null   

(prevents you from appearing on your screen even by redirecting to / dev / null )

this User @ b which is allowed to run sudo tee / dev / console .

If you do not have permission to run sysadmin sudo tee / dev / console for user @b , read and to know that < Code> user @ b this permission

If you are sysadmin for not b and do not have permission to run user @ b sudo tee / dev / console < / Code>, you have to ask B's Sesadmin to set it.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -