Re: Sending Commands to Terminal Windows
Re: Sending Commands to Terminal Windows
- Subject: Re: Sending Commands to Terminal Windows
- From: John W Baxter <email@hidden>
- Date: Sun, 25 Aug 2002 13:20:21 -0700
At 11:57 -0700 8/25/2002, Christopher Nebel wrote:
>
Probably, yes -- I was being lazy. If you plan on doing a lot of
>
interactive shell tool scripting, you should check out "expect"
>
<http://expect.nist.gov>, which was actually designed for that sort of
>
thing. It's not part of the standard Mac OS X distribution, but I'm
>
told it's fairly straightforward to build.
I haven't tried building expect. The Fink folk may have, but my machine is
still a Fink-free zone.
One can do much of what expect does in connection with telnet by using the
telnetlib library which comes with the Python 2.2 which Apple kindly
provided in Jaguar. Certainly enough to do a prompted telnet login.
Be warned though that telnetlib has warts. If something doesn't seem to
work, it may be because it doesn't work.
--John
--
John Baxter email@hidden Port Ludlow, WA, USA
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.