Issue
When trying to run a remote, I get a trimmed output. For example, after running:
ssh host@server top -b -c -n 1
I get:
4789 user 20 0 359m 249m 3464 S 0.0 3.3 0:06.83 worker.rb:
Where the original out is much longer. Why?
Solution
top tries to be useful and crops the output to your terminal width. Try ssh -t host@server top -b -c -n 1
to force ssh to create a pseudo-tty (that should have the same width as your real one).
Or alternatively something like ssh host@server COLUMNS=100 top -b -c -n 1
.
Answered By - Jussi Kukkonen Answer Checked By - Dawn Plyler (WPSolving Volunteer)