Using ssh command with watch
Hi all,
I've been trying to use both ssh and watch commands in the same line, but getting this error: Quote:
Code:
mSergani:~ $ ssh user@192.168.1.100 "watch df -h" It's highly important in my line of work. Thanks. //M |
Add the '-t' option to ssh, to add a pseudo-terminal for any commands that use screen addressing (like watch, top, etc.):
Code:
$ ssh -t user@192.168.1.100 "watch df -h" |
Thanks macemoneta, that worked fine.
Another solution I tried was Code:
ssh user@IP "TERM=xterm ; watch "df -h"" One problem I found though was that watch isn't refreshing smoothly, like it skips time. Any thoughts? Thanks again. //M |
can you tell me how to connect the server graphically through ssh...
thanks |
Quote:
|
Quote:
|
All times are GMT -5. The time now is 02:58 AM. |