Re:Interesting commands for the Linux shell
by tych0 on Thursday September 14, 2017 @01:18PM
(#15250159)
The kernel also recently (4.8-ish?) introduce an `olddefconfig` command, so you don't have to mess around with yes.
Re:Interesting commands for the Linux shell
by feelin_googley on Thursday September 14, 2017 @11:29AM
(#15249010)
"...("supervise command" - his words). That is bad terminology."
"Examples of actual supervisors are..."
1999-2001
http://cr.yp.to/daemontools/supervise.html
runit and s6 are copies of daemontools.
Otherwise I liked your comment about use of yes.
Re:Interesting commands for the Linux shell
by skocznymroczny on Thursday September 14, 2017 @10:17AM
(#15248235)
Unfortunately it doesn't work when trying to connect via ssh and warning about unknown key pops up.
Re:Interesting commands for the Linux shell
by hnlmorg on Thursday September 14, 2017 @10:44AM
(#15248515)
That is intentional behavior on the part of `ssh`. You can still disable that prompt within `ssh` (though it's not recommended):
ssh -oStrictHostKeyChecking=no 192.168.0.100
...or by adding rules in /etc/ssh/ssh_config or ~/.ssh/config Host 192.168.0.*
StrictHostKeyChecking no
Practical example: when you are doing "make oldconfig" on the kernel, and you don't care about all those questions:
yes "" | make oldconfig
Or, if you prefer answering no instead:
yes "n" | yourcommand
Also, the author refers to watch as a "supervisor" ("supervise command" - his words). That is bad terminology. Process supervision has well defined meaning in this context, and watch isn't even close to doing it.
Examples of actual supervisors are supervisord, runit, monit, s6, and of course systemd (which also does service management and, er, too much other stuff, honestly).