3 ms·
Exactly -- check out script in the link, it shows how it would be used. I'm not sure why the first `remote_cmd` is called (probably local testing and forgot to
by chaps 5y ago
Exactly -- check out script in the link, it shows how it would be used. I'm not sure why the first `remote_cmd` is called (probably local testing and forgot to delete it), so ignore that.
Try this and you'll see how it returns a dramatic amount of bash as its output:
remote_cmd="`typeset -f` ; function test123 { echo hi! ; }" && echo -e $remote_cmd
- throwawaygh 5y agoAh, makes sense! Yeah, that's nice. You can do something similar with scripting languages by piping source code into the interpreter. Super useful back in the day for doing crap on machines in an LSF cluster when the NFS was down/slow.