Getting trimmed output of a ssh command
linux, ssh, terminal, ubuntu
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`.
Problem
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?