3 ms·
With all respect to several of the clever methods shown here, sometimes brute simplicity is the better part of creativity. For any sufficiently complex sequenc
by dredmorbius 5y ago
With all respect to several of the clever methods shown here, sometimes brute simplicity is the better part of creativity.
For any sufficiently complex sequence of commands, I'll create a script and either place that on a universally-accessible mountpoint (e.g., where NFS mounts are used), or scp that to the target host as part of execution. (This is effectively how numerous configuration-management engines operate, as with chef, puppet, and the like.)
1. Quoting is a non-issue.
2. Parameters to the command being a possible exception.
3. The process is reproducible.
4. The command(s) can be updated / iteratively developed, if necessary.