• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Pexpect Timeout Problem

 
Ranch Hand
Posts: 205
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have been struggling with a Pexpect script. I am 'expect'ing a couple of strings or a timeout. When the strings are found, that works fine. However, when I get a timeout I want to get the output at that point, if any, but cannot find a way to do it. It seems like 'before', 'after' and 'readline' do not work in an 'except proc.TIMEOUT' block. Actually I cannot get 'readline' to work at all. How do I determine if there was any output and if so get it? TIA.
 
reply
    Bookmark Topic Watch Topic
  • New Topic