0

Does the expect command work after an su is executed in the script?

Does expect work by emulating the feeding of key strokes to the terminal?

vfclists
  • 19,193
  • 21
  • 73
  • 92
  • I answered, but @Mat is right. You could have proven it to yourself in less time than it took to write the question. – Zac Thompson Apr 11 '12 at 20:23
  • I only consider functionality to be genuine if it is part of the design specification. Just because something works does not mean it will always work. I don't like 'features' – vfclists Apr 11 '12 at 21:55

1 Answers1

1

Yes and yes, although the second bit ("emulating ... key strokes") is an oversimplification.

Zac Thompson
  • 12,401
  • 45
  • 57