My brain hurts. I have to move one of our largest Expect applications to another server. It was written before I knew how to make something easy to install on multiple hosts, and long before I knew about Expect.pm. The new host can't rsh to all the systems this program needs to get to, so I have to rework several places in the code to telnet instead. Which means reading passwords from files. Which means parsing files in TCL. Shoot me.
Oh, and TCL/Expect syntax seems to have left me over the last 12 months or so. I spent an hour and a half or so yesterday trying to debug my telnet subroutine code, which worked fine on its own but failed when I put it in a subroutine. Turns out spawn sets the spawn_id variable, which is not global.
Don't just shoot me, throw a brick at my head.
I still really appreciate how much easier expect made my life in a previous job. I think I'd probably take more than a second look at Expect.pm now though...
-Dom
Re:Shame
jdavidb on 2002-09-20T13:26:00
Yes, Expect truly is wonderful; it's just that TCL is not the best of worlds, and I can't remember how it works.
:) The Exploring Expect book is still the best O'Reilly book I've ever had, though. And it still comes in handy with Expect.pm work.