How to make an app auto relaunch if it quits - need some advice....

Hi all,
I came across this bit of advice regarding creating a script (I think) that will tell a specific app to relaunch if it unexpectedly quits: http://www.macworld.com/article/57451/2007/04/autorestart.html
It gives instructions using a program called "Lingon", but this appears to be an earlier version, because the latest version I've downloaded for Leopard seems to have different options. Despite this I've tried to work around the instructions but am failing it appears.
I am not experienced in this area and would appreciate someone giving me some pointers int he right direction, as I believe this potentially a simple thing to do.
In Lingon you have 3 main windows:
In Window 1 I have: "com.jamiemartin.C4DServerLauncher"
In Window 2 I have: "/Applications/MAXON/CINEMA\ 4D\ R9/C4D\ Server"
In Window 3 I have: "Run it every 1 minute"
The reson I have selected "Run it every 1 minute" in section 3 is that I have multipled crash logs for the C4D Server app, so don't know which one to select for the program to recognise the file being modified (when it unexpectedly quits) as is in the original instructions. I assumed this would be a workaround?
Also, what do I do after I have saved this? Do I have to leave Lingon open for it to work, or has it saved this script somewhere?
So, I am probably way off the mark, but if anyone can put me back on track I'd greaty appreciate it.
Thank you in advance. Jme

frankiej60 wrote:
OS info updated. Hadn't noticed it wasn't up to date.
Thanks for the guidance V.K. I did restart the computer (twice) but to no avail - it didn't do anything. And yes, you're right about the possibility of it being the frontmost app every minute being potentially annoying! Hadn't considered that. I didn't follow the original instructions of selecting a crash log as the file to check, as I assume that that wouldn't work, as whenever the app crashes it creates a new crash log instead, so it would, in theory, never recognise a change in the script (as it would be looking at the previous crash log), and thus never realise the app has quit? Or have I got that wrong?
I'm not sure how the logs are filed. I assumed that the author of that macworld article checked it out and the crash logs are appended to a fixed file. if a new log file is created every time this will of course not work. the alternative is to have the launch daemon watch the whole crash reporter folder instead of a single file. this way the application in question will launch every time ANY application crashes but that seems like an acceptable workaround.
Also, I notice the instructions say that you need to go deeper than selecting just the app itself, but delve into the package contents, but on this version of Lingon I don't have that option.
yes it does and you have to do as the article says. in fact this has nothing to do with Lingon at all. we are talking about the application you are watching not Lingon. control-click on the application you are watching and select "show package contents". go to Contents->Mac OS and drag the unix executable file to filed 2 in Lingon.
Is this the root of the problem for it not working for me?
yes.
Also, where does it store this script once I've saved it?
in ~/Library/LaunchAgents. ~ means your home directory.
Thanks again in advance. It's a steep learning curve for me!
Jme
Message was edited by: V.K.

Similar Messages

  • All of my apps on my new ipad2 are not working. I had this iPad about 4 months and nothing bad has happened before this. I need help on how to make my apps stop crashing. All my built in apps are fine though.

    All of my apps on my new ipad2 are not working. I had this iPad about 4 months and nothing bad has happened before this. I need help on how to make my apps stop crashing. All my built in apps are fine though. WHATBCAN I DO TO MAKE MY APPS STOP CRASHING. I ALREADY TURNED IT OFF THEN ON AGAIN AN IT STILL CRASHES. HELPPP!!!!

    Try a reset. Hold the Sleep and Home button down for about 10 seconds until you see the Apple logo. Ignore the red slider.

  • How to make an app a file receiver for images on iOS?

    Hi,
    How to make an app a file receiver for images on iOS?
    I did it for the Android app.xml like this:
    <intent-filter>
            <action android:name="android.intent.action.SEND"/>
            <category android:name="android.intent.category.DEFAULT"/>
            <data android:mimeType="text/plain"/>
        <data android:mimeType="image/jpg"/>
        <data android:mimeType="image/jpeg"/>
        <data android:mimeType="image/png"/>
        <data android:mimeType="image/gif"/>
    </intent-filter>
    How to do it for iOS?
    (I'm using Adobe Air 4.0)
    Thank you!

    What app have you used to create your ibook?  Normally any app will have a menu item like File > Export that will give you the option of PDF, or you can use Print and there will be an option in the Print dialogue to Print to PDF.

  • How to make VPN client auto timeout when it still idle?

    How to make VPN client auto disconnect when it still idle?
    Hi,I found some user still connected the VPN evenif they dose not use the VPN resouse.
    I try to set a "idle timeout" for the VPN configuration.
    We use PIX515 8.0.3 and CISCO ACS 4.2 for the VPN's connection and authentication,and the user use cisco vpn client for the connection.
    I have tried many methods,but all failured.
    First,I configed "vpn-idel-timeout 5" on PIX.It can not worked.
    so,I add Radius(CISCO VPN 3000/ASA/PIX 7.0+) attribute "[026/3076/050] Authenticated-User-Idle-Timeout" on CISCO ACS,It still not worked.
    And I also add IETF RADIUS Attributes "[028] Idle-Timeout" on group setting on ACS,it always not worked.
    i found in vpn client's statistics,it always has some byte sended or received, i thought it maybe IPsec keepalive message or Radius message.
    This maybe the reason because the PIX or ACS think the vpn user is keep working.
    Can someone tell me how to make a "idle time out"?
    best regard.
    Roger

      here is the configuration on PIX,
    group-policy DfltGrpPolicy attributes
    wins-server value 10.0.0.67 10.0.0.68
    dns-server value 10.0.0.67 10.0.0.68
    vpn-simultaneous-logins 20
    vpn-idle-timeout 5
    split-tunnel-policy tunnelspecified
    split-tunnel-network-list value vpn-acl
    default-domain value mydomain.com
    address-pools value vpnpool group-policy DfltGrpPolicy attributes
    wins-server value 10.0.0.67 10.0.0.68
    dns-server value 10.0.0.67 10.0.0.68
    vpn-simultaneous-logins 20
    vpn-idle-timeout 5
    split-tunnel-policy tunnelspecified
    split-tunnel-network-list value vpn-acl
    default-domain value want-want.com
    address-pools value vpnpool

  • How to make pdf file auto open with adobe reader after downloaded

    how to make pdf file auto open with adobe reader after downloaded

    I note from your system details that you have the plugin for adobe pdf s so I would have expected the files should open in firefox '''without''' you needing to explicitly download them.
    Once the files are open in firefox, you will also get the option to save them permanently to a location on your computer. If you wish I suppose you could set the file type pdf to be associated with and be opened by firefox instead of with the Adobe Acrobat Reader, but that would just seem to be an additional complexity.

  • How do I stop apps from relaunching when restarting my macbook?

    How do I stop apps from relaunching when restarting my macbook?

    Adding to the list of quitting app's before shutting down and the reopen app's options above, go to: Apple > System Preferences > Users & Groups > Login Items and remove any unwanted App's from the list that are set to open at login.

  • How to make an app deleted from iTunes library be deleted from all the iOS devices synced with this library?

    Hello!
    I have 3 iOS devices synced with iTunes apps library (OS X 10.10.2)
    Can someone tell me how to make not only added but deleted apps be synced also? I mean I want an app deleted in iTunes library be deleted from any iOS devices synced with this library.

    But it was working some time before! What and when has changed?
    There was even a warning popup window something about "this application will be deleted from all the devices synced with this library"
    Now there's opposite message - "This application will not be deleted from any device syncing with this account". Isn't it some kind of clue that there can be conrarily circumstances - when application IS deleted from ANY device synced with this computer?

  • How to make in-app purchase?

    Hello everybody!
    I've got problem with in-app purchase. Let me give you an example of this problem. I have bought application Russia Football Live Score. This application allows to get push notifications with game's result. To subscribe one push notification (I mean for push notification one team's games) you should make in-app purchase ($0,99). So, application asks me if I'm ready to pay $0,99. I aks "Yes" and than I see one of these error screens:
    http://img199.imageshack.us/img199/5716/errormessage1.jpg
    http://img199.imageshack.us/img199/7329/errormessage2.jpg
    What's going on? How can I solve this problem?
    Thank you!

    We tried everything. Not only set another settings (in iPhone and in application), but even use another iPhone 3G (my girlfriend's iPhone with same account)!
    I think that the problem is my account. I don't know why, because I easily buy any applications in AppStore
    The adviced me to write to Apple for assistance...

  • How to make J2EE engine auto load The JSP Pages

    After I modify some JSP pages, If I just copy them to  the folder in the Server, The pages didn't update.
    How to make it auto update?

    Hello Shen,
    please take in consideration, that JSP page is translated to HttpServlet  component when deployed. It's not accessed via original JSP file.
    You can try to modify the final HttpServlet class file, but then you have to go through pre-compiling.
    Hope it helps,
    regards.
    mz

  • How to make an app that uses plugins???

    Hello All,
    I am relatively new to programing and i have never done some thing like this so what i would like to know is.
    How can i make an app that can get/load plugins from a folder and then use them to copy files from one place to another(i got he copy part down just need the plugin part.
    And then i need to know how to parse the location of the file that needs to be copied and the folder it needs to be copied to into the plugin.
    Thanks in advance.

    What you do it to define a common interface which plugins have to implement. Typically you place the .class files for the plugins in a special directory (not on the class path) and you create a URLClassLoader to load the plugin classes. Class names (FQNs) for plugins are usually in some kind of configuration file.
    One you load the class you'll usually create a single instance (with Class.newInstance()) and cast it to the common interface. It's simpler to use a no-args constructor and define some kind of initialize method in the interface to initialise the plugin. Typically you pass some kind of context object when you initialize the plugin, which the plugin can use to comunicate with the framework.

  • How to make an apps available?

    Hi,
    APEX 2.1.
    I have changed the apps attributes:
    a. Status - Unavailable
    b. Build status - Run Application Only
    and the result is as expected.
    The app is unaccessible for everybody(devs , users etc).
    Just disapeared from Application Builder.
    My question is :
    how to bring the app to be available again?
    Regards,
    Cezary

    Hi Cezary,
    I had a similar situation in HTMLDB 1.6.
    I didn't want users to be able to view the application in debug mode, so I set the application Build Status to 'Run Application Only.' This removes the application from the list of applications in development.
    To get back to the app, log into your workspace and click on any other application. The URL will end in something like 'f?p=4000:1:4474661944004190125:::RP:FB_FLOW_ID,F4000_P1_FLOW,P1_FIND:333%2C333%2C'.
    I'm not sure if your version is different, but this may work. Replace the '333' (which appears twice in the URL) with your application's ID number. The new URL will direct you to your old application.
    Let me know if this helps, or need clarification.
    -Tim

  • Automator: how to make an app that accepts hyperlinks dropped on it?

    I tried using the 'get specified url' action but it doesn't make the app capable of accepting hyperlinks dropped on it. what i am trying to do is...
    1. drop hyperlinks from a certain webpage onto the app.
    2. make the app scan that hyperlinks webpage for urls in it.
    3. filter urls i want
    4. download those urls.
    when i use the workflow it works fine. but automator freezes all the while it downloads it and i can't run more such download in parallel. so i want to make and app. when i saved the work flow as an app it wont accept any input. any help?

    See http://discussions.apple.com/thread.jspa?threadID=2039384 and Introduction to Automator tutorial at http://automator.us/leopard/video/index.html
    And, http://www.automatedworkflows.com/tips/podcast.html and
    http://www.macosxautomation.com/automator/examples/ex04/index.html
    And, http://discussions.apple.com/thread.jspa?threadID=2241804 for a four-parter by Sal Saghoian on *Automation in Snow Leopard*
    Finally, here's a new episode that demonstrates the differences between AppleScript Studio and AppleScript-Objective-C application development. http://pixelcorps.cachefly.net/mbkd036_540ph264.mov
    It references this page on MACOSXAUTOMATION.COM: containing the example project files: http://www.macosxautomation.com/applescript/develop/index.html

  • How to make this app work?

    Hi
    Sorry for posting such a basic question...
    I am trying to make an app work in OC4J. It is the Oracle "pizzaria" sample app that uses JSF.
    I deployed it manually to a standalone OC4J 9.0.4.0.0 instance on windows XP.
    I changed the files http-web-site.xml and server.xml.
    When I try to run it through the URL http://localhost/pizzaria/faces/index.jsp, it simply gives me the error "Cannot find server or DNS Error", nothing else (not even in the log files).
    If I try http://localhost/ it gives me the OC4J welcome page.
    If I try http://localhost/noexistingapp/faces/index.jsp it gives me the 404 error (as expected).
    My first question is: why it gives me the apparently wrong "cannot find server error" instead of a 404 or 500 error when I try to access the app?
    Secondly, what could be wrong?
    Thanks!
    lc

    Do not mind - I found an error message in server.log (shown below). It seems to be a missing class, I'll check it. But I do not understand why I do not get an 500 error instead of a "Cannot find server" error when I try to access the page.
    Thanks
    04/03/01 11:22:27 Internal error in HttpServer
    java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
         void com.sun.faces.config.ConfigListener.<clinit>()
              ConfigListener.java:79
         java.lang.Class java.lang.Class.forName0(java.lang.String, boolean, java.lang.ClassLoader)
              native code
         java.lang.Class java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader)
              Class.java:195
         void com.evermind.server.http.HttpApplication.initDefaultServlets()
              HttpApplication.java:4890
         void com.evermind.server.http.HttpApplication.initDynamic(com.evermind.server.http.HttpApplicationConfig)
              HttpApplication.java:701
         void com.evermind.server.http.HttpApplication.<init>(com.evermind.server.Application, com.evermind.server.http.HttpSite, com.evermind.server.http.HttpApplicationConfig, java.lang.String, java.lang.String, boolean)
              HttpApplication.java:497
         com.evermind.server.http.HttpApplication com.evermind.server.Application.getHttpApplication(java.lang.String, java.lang.String, boolean, long, com.evermind.server.http.HttpSite, boolean)
              Application.java:886
         com.evermind.server.http.HttpApplication com.evermind.server.http.HttpServer.getHttpApplication(com.evermind.server.http.HttpApplicationReference, com.evermind.server.http.HttpSite)
              HttpServer.java:688
         com.evermind.server.http.HttpApplication com.evermind.server.http.HttpSite.getApplication(com.evermind.util.ByteString)
              HttpSite.java:420
         boolean com.evermind.server.http.HttpRequestHandler.processRequest(com.evermind.server.ApplicationServerThread, com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
              HttpRequestHandler.java:422
         void com.evermind.server.http.HttpRequestHandler.run(java.lang.Thread)
              HttpRequestHandler.java:270
         void com.evermind.server.http.HttpRequestHandler.run()
              HttpRequestHandler.java:112
         void com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run()
              ReleasableResourcePooledExecutor.java:186
         void java.lang.Thread.run()
              Thread.java:484

  • Oracle Apps - need some advice

    Hi folks,
    I would like to get into Oracle Apps. I am planning to learn and give some certification in Oracle Apps. I went through most of the pages in oracle.com, but couldnt get the information I am looking for. Where should I start to excel in Oracle Apps. I have already given PL/SQL certification and working in a similar track. So I would be grateful if anyone of you can advise me.
    What are the pre-requisites for giving an Oracle Apps Certification exam? Should I have some specified amount of IT experience before I sit for the exam? Please help me friends...

    What do you want to learn in Apps, there are different field like Financials, Manufacturing, HRMS, CRM etc., and again whether you want to go for Technical side or Functional side?
    Yes, now a days Certifications are available in Apps.

  • How to make an app

    Okay, I have this really great idea for an iphone app, I have a pretty good knowledge of computers (my friends and family know me as a computer geek) but I have zero knowledge of the iphone software or xcode.
    How can I learn what I need to make an iphone app? (Apple's developer videos for the sdk didn't look like they teach the coding which seems pretty necessary...is it?)
    I do have an iphone 3g.
    Thanks
    - Jake

    The C based languages are harder to pick than ones such as Java or web coding languages (AJAX, etc). Programming takes a lot of time and effort. Learning something new is never a waste of time if it is going to be profitable for you. It may take you a few months to get the hang of it if you have never programmed anything before but you have to start somewhere.
    I would suggest getting some books and start reaading and trying the examples in the book. If you can figure out logic strings (IF event a OR c happens produce postive output) and learn how to use them properly you will be able to pick it up fairly quickly.
    You application may take you a few months to produce but you will learn a lot along the way. Once you have done it once it will take you far less time to reproduce it later on when you may need the same code/skills for another project.

Maybe you are looking for