Keep It Alive (kkrac) Mac OS

Posted on  by
Mac OS X Launch Agent to start & keep iTerm alive

It uses KeepAlive but adds a check called SuccessfulExit. If an app exits 'successfully' (technically, with an exit code = 0) then the app will not be automatically restarted (kept alive). However, if the app crashes (exit code not equal to 0) then it will be automatically restarted. Here is the relevant bit of launchd code.

  1. KeepAliveInterval Specify a number of seconds for VNC Viewer to wait between sending keep alive messages to VNC Server, to maintain connections that might otherwise be considered idle by routers or gateways (perhaps because the VNC Viewer session window is minimized), and unexpectedly terminated. Specify 0 to not send keep alive messages.
  2. First, this was the only ‘keep alive’ app that effectively prevented unwanted sleep, all others failed, but Taurine does the job well. I like the counter, easy quick interface, and lean profile. I don’t usually write reviews, but when an app solves a nagging problem well, it deserves 5 stars.
  3. Darwine: PowerPC – Mac OS X 10.3.9 Panther or later. Darwine project intends to port and develop WINE as well as other supporting tools that will allow Darwin and Mac OS X/ppc users to run Windows Applications, and to provide a Win32 API compatibility at application source code level.
local.rw.launchkeep.iterm.plist
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPEplist PUBLIC '-//Apple//DTD PLIST 1.0//EN' 'http://www.apple.com/DTDs/PropertyList-1.0.dtd'>
<plistversion='1.0'>
<dict>
<key>Label</key>
<string>user.launchkeep.iterm</string>
<key>KeepAlive</key>
<true/>
<key>Program</key>
<string>/Applications/iTerm.app/Contents/MacOS/iTerm</string>
</dict>
</plist>

commented Dec 31, 2012

I know I'm coming in way after the fact here, but where am I supposed to store and launch this file? Any help would be much appreciated! :D

commented Mar 30, 2017

Unless otherwise noted, plists should be placed in the '$HOME/Library/LaunchAgents' (where '$HOME' represents the path to your home directory, for example: /Users/sjobs/Library/LaunchAgents/

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Keep auto-timeout Transmit connections alive 10 comments Create New Account

Keep It Alive (kkrac) Mac Os X

Click here to return to the 'Keep auto-timeout Transmit connections alive' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.

Aha, this is why Transmit keeps dropping on me.
I usually just open the files in Bbedit and edit them straight to the server - recently I had noticed it was timing out but could figure out why...my sanity thanks you.

I'm not sure how to do it if you use tabs, but if you use separate windows for each session, you can modify your script to the below, and it should refresh all your sessions.

I abbreviated one of your tell blocks since you only had one command in it.

HTH,
Rycardo
KeepI think you might have wanted the 'delay 60' above the 'end repeat' :)

This version seems to work OK with tabs:

...and that commented-out refresh line obviously didn't need to still be there *cough*

I messed up my typing:
The last three lines should be this:
the delay 60 should be above the end repeat.

Transmit doesn't auto-reconnect when you try to fiddle with the window? Huh. I used to use Cyberduck, and am now shifting over to MacFusion, and they'll both auto-reconnect without hassling me if the connection's gone down when I try to use it.

I use Transmit, and it automatically reconnects dropped connections whenever I try to interact with the server. There doesn't appear to be anything in the Prefs that I might have changed, so I can only assume that this is its standard behaviour.

Keep It Alive (kkrac) Mac Os Download

Cool, thanks for the feedback. It makes me sad that my hint only garnishes 2 1/2 stars though. ;( I should point out that I had 'keepalive' in the original title text, so it would pick up for people who are familiar with the FTP command and looking to make the functionality for transmit, which for some reason, unlike almost every FTP program i've ever seen, doesn't have it as an option. However, it's my favorite.

For T-Mobile's G1, there will be a bundle of tmobile g1 accessories online to select from; everything from Backup Batteries to Car Accessories, G1 Cases, Chargers, Cables, Headphones, Cradles, Bluetooth Accessories, and more. The list goes on and on, but basically the primary purposes of any g1 accessories are to add functionality, such as where you can use it and what you can use it with, make some features easier to use, and extend the use of the G1 Android phone at Fommy.com.
http://www.fommy.com/t-mobile-g1.htm

Keep It Alive (kkrac) Mac Os Update

One problem I see with this script is that it will never terminate. If running as an application, the only way to quit it is to force-quit. My solution:
tell application 'System Events' repeat while exists process 'Transmit' tell application 'Transmit' set all_docs to count of documents repeat with this_doc from 1 to all_docs tell document this_doc -- tell current session to refresh list their stuff files set all_sessions to count of sessions repeat with this_session from 1 to all_sessions tell session this_session to refresh list their stuff files end repeat end tell end repeat delay 60 end tell end repeat quit application 'Transmit KeepAlive' end tell
Replace 'Transmit KeepAlive' with whatever you have called your application. This version will quit itself (after 60 seconds) when it detects that Transmit is no longer open.