Re: how can I reliably query the correct terminal window?
Re: how can I reliably query the correct terminal window?
- Subject: Re: how can I reliably query the correct terminal window?
- From: Skeeve <email@hidden>
- Date: Wed, 03 Dec 2008 22:29:48 +0100
Mark J. Reed schrieb:
Not me. I just said "top", and I meant "top of the buffer", even
though that wasn't at all clear. :)
I think this is more reliable than hoping the user won't switch windows.
It all depends on what the script is doing and how impatient the user
is, I guess.
But it's the best I can hope for, I guess. Unless someone on this list
can come up with a more reliable way.
For my purpose: logging in to certain machines which I can reach only by
going over one or two other machines, it's good enough.
I wrote one "connect" script that gets loaded by another script named
"email@hiddenn". If I need a new machine to access, I simply
copy an existing one and rename it.
When I start this copied script, iot loads the "connect" script which
tries (depending on the domain) to figure out which "jumpbox" (i.e.
which other machine(s)) i need to log in first.
So when I need to go too jumpbox1.domain1, then to jumpbox2.domain2 to
reach machine3.domain3, this script
a) opens the terminal
b) runs ssh to jumpbox1
c) waits for the prompt
d) runs ssh to jumpbox2
d) waits for the prompt
e) runs ssh to machine3
2 jumpboxes is the must right now. I think, even with 2000 lines, the
limit won't be hit.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden