Forum Discussion

Pia_125742's avatar
Pia_125742
Icon for Nimbostratus rankNimbostratus
Jan 15, 2013

tmsh show - question

Hi,

 

 

this is a hopefully very silly question and thus easy to answer. I try to use

 

 

tmsh show /gtm wideIp

 

to get the statistics for all wideIps into a simple text file - unfortunately I always get a confirmation prompt

 

"Display all 1347 items? (y/n)"

 

How can I get rid of the prompt ?

 

 

 

 

4 Replies

  • nathe's avatar
    nathe
    Icon for Cirrocumulus rankCirrocumulus
    Pia,

     

     

    Not tested this myself but from another post I recall their are potentially two options.

     

     

    1. Using echo y | tmsh show......

     

    2. Using the -q TMSH switch. "-q prevents tmsh from responding to user actions with questions. This option is useful when writing non-interactive shell scripts from the system shell."

     

     

    Hope this helps,

     

    N

     

  • Wonderful - the -q option is exctly what I was looking for.

     

     

    many thanks nathan !
  • Wonderful - the -q option is exctly what I was looking for.

     

     

    many thanks nathan !