Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disable confirmation in TSE

Status
Not open for further replies.

samsal

IS-IT--Management
Mar 16, 2013
33
JO
Hi all,

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top