• 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: Closing a terminal window when a terminal process ends
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Closing a terminal window when a terminal process ends


  • Subject: Re: Closing a terminal window when a terminal process ends
  • From: "Brett K." <email@hidden>
  • Date: Wed, 16 Nov 2005 12:12:44 -0500

[2005-11-16 12:02-0500] Maccin wrote:

I want applescript to close the terminal window I opened when the ssh process ends (when they log out) but I'm not sure how to do so. Any suggestions are appreciated.

If you add "; exit;" to the end of a shell command, then it will exit and close the window when the command is complete.


I would try:

do script ("ssh " & clientUsername & "@serverAddressIsHere" & "; exit;")

Hope that helps.

--
Brett

Thunderbird: Reclaim Your Inbox
<http://www.GetThunderbird.com/>

Firefox: Rediscover the Web
<http://www.GetFirefox.com/>

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Closing a terminal window when a terminal process ends
      • From: Daniel Jalkut <email@hidden>
References: 
 >Closing a terminal window when a terminal process ends (From: Maccin <email@hidden>)

  • Prev by Date: Closing a terminal window when a terminal process ends
  • Next by Date: Re: (no subject)
  • Previous by thread: Closing a terminal window when a terminal process ends
  • Next by thread: Re: Closing a terminal window when a terminal process ends
  • Index(es):
    • Date
    • Thread