3 ms·
The value added is that you’re not using stdin and can use it for something else. Whether that’s actually useful depends on the use case. Personally I have an
by comex 5y ago
The value added is that you’re not using stdin and can use it for something else.
Whether that’s actually useful depends on the use case. Personally I have an ssh wrapper script, somewhat similar (though not using base64), that fixes the quoting so that the argv passed to the wrapper directly corresponds to the argv of the command on the remote end. It’s meant for interactive use, so the program I’m trying to run could easily be something that reads from stdin, or even an interactive program like sudo or vim that expects stdin/stdout to be a tty. (To make those work, the -t option has to be passed to ssh.)