00362 02/06/18 17:53 wait文
投稿者 : akihihi   コメントを投稿する

スクリプトのwait文が急に動作しなくなって、send文が即時実行されてしまいます。
なにか原因はありませんか?下記のようなパターンでプロンプトをまって
コマンドを発行してます。何か特殊文字等でwait文が機能しなくなるで
しょうか?

 wait  "DAISUB" 
  send  "cat da2tux.log" + "^M"

--以下ログ--------------------------------------

DAISUB [33]: cat da2snm.log   ・・・・@sendした後wait "DAISUB"として文字をまつ
cat da2po.log          ・・・・A以下3行ともwaitしたあとコマンドを送信するはずが、かってに送信される
cat da2lk2.log          
cat da2eco1.log         
    root  1809     1  0  8月  6  ?        297:47 /opt/xxxx   ・・・・@のcatコマンドの表示
    root  1821     1  0  8月  6  ?        467:26 /opt/xxxx
    root  1815     1  0  8月  6  ?         0:00 /opt/xxxx
    root  1845  1844  0  8月  6  ?        622:07 /opt/xxxx
    root  1844     1  0  8月  6  ?        138:23 /opt/xxxx
    root  1837     1  0  8月  6  ?        54972:08 /opt/xxxx
    root  1794     1  0  8月  6  ?        35:17 /usr/xxxx
 
========= DAISUB SNMP    7/7   OK =========
 
------------------------------
   2002年06月18日 17時37分37秒
------------------------------
DAISUB [34]: cat da2po.log    ・・・・ Bwait文がまた動作しだしてる


新規に投稿する