2

I am having trouble with the command below:

ssh -q  -o PubkeyAuthentication=yes -o StrictHostKeyChecking=no -o ConnectTimeout=2 -o BatchMode=yes SERVERNAME "lsblk -il" 2>/dev/nul

It returns the results I am looking for until the result is longer than 80 characters in one row then it cuts it off.

I would like the full results of the command if possible.

I am running SuSE Linux Enterprise Server 11 SP3.

  • 1
    Works for me. What distribution is the server running, what version? – Gilles 'SO- stop being evil' May 09 '15 at 22:11
  • Linux Enterprise Server 11.3.3, I was able to bypass the issue by using this "lsblk -i -o NAME,MOUNTPOINT" I would still like to know why that happened. @Giles – Shane Barrett May 09 '15 at 22:14
  • If you run lsblk -il on the remote server do you get the results you expect? 2. If you omit the 2>/dev/null is there any relevant error message? 3. When you write that "it cuts it off", do you mean that the characters 81 et seq on that line are truncated, or that no further lines of output are produced? 4. What happens if you pipe the output into, say, less - does it work as expected again?
  • – Chris Davies May 09 '15 at 22:33
  • Is that SuSE Linux Enterprise Server 11 SP3? What is the version of the util-linux package? – Gilles 'SO- stop being evil' May 09 '15 at 22:56