Re: Sending Commands to Terminal Windows
Re: Sending Commands to Terminal Windows
- Subject: Re: Sending Commands to Terminal Windows
- From: Christopher Nebel <email@hidden>
- Date: Sun, 25 Aug 2002 11:57:31 -0700
On Sunday, August 25, 2002, at 01:18 AM, John Delacour wrote:
I would wish to wait until the server had responded, no matter how
long that was, and I see that we have in the Terminal dictionary
contents string [r/o] -- the currently visible contents of the window
Wouldn't it be better to run a loop to exit when the contents shows
that the server has hailed?
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.
--Chris Nebel
AppleScript Engineering
_______________________________________________
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.