Read file into String and do a loop in Expect Script

前端 未结 3 1524
萌比男神i
萌比男神i 2020-12-05 12:30

What I am trying to do is to:

  1. Create a .exp file, which will read from the *.txt file from the same directory and parse all the conte
3条回答
  •  伪装坚强ぢ
    2020-12-05 13:12

    Using any of the two solutions here, I would also create a logfile that you can view at a later time. Makes it easy to troubleshoot any problems after the script is run, especially if you're configuring several hundred hosts.

    Add:

    log_file -a [log file name]

    Before your loop.

    Cheers,

    K

提交回复
热议问题