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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. hf24601

    use expect for file contents

    I would like to use expect to parse through the contents of a file, something like this: spawn cat log/mylog.txt expect { -re "some_expr" { ...do something... } default { ...do something else... } Note that I am simply reading a file, so there is nothing really interactive...

Part and Inventory Search

Back
Top