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.
lsblk -il
on the remote server do you get the results you expect? 2. If you omit the2>/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?util-linux
package? – Gilles 'SO- stop being evil' May 09 '15 at 22:56