• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: how can I reliably query the correct terminal window?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how can I reliably query the correct terminal window?


  • Subject: Re: how can I reliably query the correct terminal window?
  • From: "Mark J. Reed" <email@hidden>
  • Date: Wed, 3 Dec 2008 16:41:38 -0500

On Wed, Dec 3, 2008 at 4:29 PM, Skeeve <email@hidden> wrote:
> 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

Well, that does seem unlikely to hit the limit.  Unless the machines
have really big motd's. :)

Although, for this particular problem, it seems like you could just
use a shell script rather than scripting Terminal.  e.g. have the
connect script do

$ ssh -t jumpbox1 ssh -t jumpbox2 ssh machine3

all at one go.
--
Mark J. Reed <email@hidden>
 _______________________________________________
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

  • Follow-Ups:
    • Re: how can I reliably query the correct terminal window?
      • From: Skeeve <email@hidden>
References: 
 >how can I reliably query the correct terminal window? (From: Skeeve <email@hidden>)
 >Re: how can I reliably query the correct terminal window? (From: Skeeve <email@hidden>)
 >Re: how can I reliably query the correct terminal window? (From: "Mark J. Reed" <email@hidden>)
 >Re: how can I reliably query the correct terminal window? (From: Skeeve <email@hidden>)
 >Re: how can I reliably query the correct terminal window? (From: "Mark J. Reed" <email@hidden>)
 >Re: how can I reliably query the correct terminal window? (From: Skeeve <email@hidden>)
 >Re: how can I reliably query the correct terminal window? (From: "Mark J. Reed" <email@hidden>)
 >Re: how can I reliably query the correct terminal window? (From: Skeeve <email@hidden>)

  • Prev by Date: Re: how can I reliably query the correct terminal window?
  • Next by Date: Re: how can I reliably query the correct terminal window?
  • Previous by thread: Re: how can I reliably query the correct terminal window?
  • Next by thread: Re: how can I reliably query the correct terminal window?
  • Index(es):
    • Date
    • Thread