How to disable the "Are you sure" sentence after entering commands like ip_extension -e .... ?
I want to end many extensions and i don't want to do it one by one to enter Y.
Within mdsh you can set the automatic confirm for dangerous commands with -
MDSH> set _FORCED=yes
Turn it off with -
MDSH> set _FORCED=no
If you transmit your file from the bash prompt and use mdsh commands via the -c switch you can include the -f switch to force y response to yes/no question.
e.g.
mdsh -f -c trigger TLP60 remove all
You must create a file to cancel extension in a directory /tmp i.e and send it with "mdsh -f ip_extension -e"
with the switch -f FORCE turn off confirmation of dangerous command
bye
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.