imgcat works locally, fails on remote machine
- iTerm2 version: 3.0.7
- OS version: 10.11.6 (15G1004)
- ~/Library/Preferences/com.googlecode.iterm2.plist: com.googlecode.iterm2.plist
- Debug log: debuglog.txt
imgcat works just fine locally, but when I try it while ssh'ed into a remote machine, it doesn't work. It just downloads an empty file. My initial issue appears to be exactly the same as seen in issue 3930. I made sure to use the latest version of the imgcat script. When I run imgcat lam_rholines.png > imgcat.out
, I get an error message that says base64: invalid input
, and the output file looks like this: imgcat.out. base64 --version
results in base64 (GNU coreutils) 5.97
plus other stuff. When I try editing the imgcat
script to hardcode BASE64ARG
to either -d
or -D
, that doesn't fix it. When it's hardcoded to -D
, however, when I run imgcat lam_rholines.png > imgcat.out
, the error changes to base64: illegal option -- D
. Everything is the same in the imgcat.out
file except it says size=0
instead of size=57
.
==EDIT==
Even though the error message I saw was different from issue 3930, it turned out that the GNU coreutils version 5.97 version of base64 was the problem. After compiling base64 from source on my remote machine from https://www.fourmilab.ch/webtools/base64/, (version 1.5) everything worked fine.