To monitor a program/process running using launchd

Hello

I wrote a simple bash script to check if a program (supplied as single argument) is running and send an email to an address defined in the script, if it isn't. The script works if run on the command line, but I can't for the life of me operate under launchd as user agent (~/Library/LaunchAgents) when I try to set it to run every minute. The latest incarnation of the relevant .plist file (monitors Dropbox):

<? XML version = "1.0" encoding = "UTF-8" standalone = "yes"? >

<! DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0 / / IN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd" > ""

< plist version = "1.0" >

< dict >

< key > tag < / key >

< string > greencollar. Dropbox.checkRun < / string >

< key > StartInterval < / key >

< integer > 60 < / integer >

program < key > < / key >

< string > /Users/greencollar/Documents/code/proc_check.sh < / string >

< key > ProgramArguments < / key >

< table >

< string > proc_check.sh < / string >

Dropbox < string > < / string >

< / array >

< / dict >

< / plist >

Yes - the bash script is executable, and no there is no entry in the Console indicating problems with the .plist file. I tried to / bin/bash program, but this does not seem to make any difference and reading execvp (3) seems to hint that he would not. I also tried to have everything under < ProgramArguments > without a bit of luck as well. Any help would be greatly appreciated because it seems pretty basic to me, and it's very frustrating that I can't make it work!

I always use this syntax:

< key > ProgramArguments < / key > < table >

< string >/bin/bash < / string >

< string >-c < / string >

< string >. Bash as; you want < / string >

Tags: Mac OS & System Software

Similar Questions

  • Program/process running flashing a black screen on my desk.

    As I am workng on my computer get a black screen that flashes... .it just recently started happening... very annoying. Someone at - he never experienced HRT? I don't see how ths screen is that it disappears.

    Hello

    Please try to place your computer in a boot minimum scenerio.  It seems that there is a 3rd party application or process running which is the filler on your screen.

    http://support.Microsoft.com/kb/331796

    http://support.Microsoft.com/kb/929135

    Once you find an app that runs on your computer that is the filler, please remove the startup item or delete/remove the program.  I hope that this information is beneficial.

    Thank you

    Aaron
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • How to check an Application/process running using Labwindows

    Hello

    How can I check if a process or Application is running or not with CVI?

    I used to try this in Labview, and to check the application, it is a VI in the Web site of NOR. But I have no idea on the use of CVI for this.

    And also, how can I check if a file is opened or help? I want to rename foder in my code, if it is open (perhaps a file in the folder are open), the action to rename will go wrong.

    Thanks in advance

    Hello

    using forum search I found the following thread discuss your topic:

    http://forums.NI.com/T5/LabWindows-CVI/how-to-know-exe-is-running-and-close-the-exe/m-p/1040673

  • I've updated to v10.0 version, now a specfic program that runs using a bowser does not work. The problem is when the program runs a compliance test the following error message is displayed in the test results: Test; Version of the browser, the Test result

    COMPLIANCE TEST
    Results of Test test
    Firefox browser
    Version 1 browser higher than 2.0 must
    Acrobat Reader Version 9.5.0.270
    Sun Java Plug-ins active true
    Java JAVA version
    JavaScript 1.8
    Flash Flash Player 11
    ERROR Please correct

    This program is probably only read 1 of the number 10 - IOW, it is not able to read a number with 2 digits before the decimal point.

    Contact the developer of this program and let them know that they have some Fixin ' to do.

    See the MP I send to you. See your Inbox at the top of the forum pages.

  • Window 7, I have 100 processes running using the Task Manager

    what I do with this mess and should not kapersky make up for it?

    What is it? If theyre not malware then Kaspersky will not do anything.

    Use something like ccleaner, go to tools / startup. Click at the bottom right. Copy and paste what happens here. Do the same for the Tools/uninstall

    So we can see what is installed and what is start-up

  • Display Maestro: Maunually put an end to this process running program?

    How do I MANUALLY finish the "Screen Maestro" process of the program running?  I say MANUALLY because it seems not a detroit software removalprocess.

    I got the idea to use it on my Apple TV of: https://discussions.apple.com/thread/6555305?start=0 & tstart = 0

    My goal: Watch family movies on my Apple TV through the home (Streaming) sharing using a 3rd PARTY (Non-Apple) program.  Silly me to use a 3rd party software.

    I want to Uninstall this program, but even dragging in the trash, I can't do it, because it gives me the popup window:

    "Point"Screen Maestro"" cannot be moved to the Trash because it is open.".

    Try a Force Quit won't work, because it is not registered.

    I downloaded yesterday - but I seem to have problems my MacBook Pro running at high speed.

    I use ESET Cyber Security, and I see the screen Maestro enlisted in its window of running processes.

    Interestingly, I bought screen Maestro yesterday and the window ESET Cyber Security of the watch Running Processes:

    Under the column 'time of discovery', he said: ""6 months.".

    Under the column "ID of Application Bundle", he said, "com.koingosw.DisplayMaestro."

    -------

    Right-click on the icon of the Maestro of the displayin the window of Finder of my Applications, I cannot select successfully: 'Cyber-Security ESET - add files in quarantine'.

    -------

    Any thinking about the removal of this program?

    1. Use Spotlight to launch activity monitor.
    2. Select the process you want to kill.
    3. Click on the X at the top left of the window.

    TT2

  • I use windows 10 on pc. Creative cloud must update. He gets 2% and keep saying "error code: 81 please close the other setup programs" when you look at the Task Manager, no setup program is running. What should I do? Photoshop and Lightroom will not wor

    I use windows 10 on pc. Creative cloud must update. He arrived at 2% and stops, saying: "error code: 81 please close the other setup programs" when you look at the Task Manager, no setup program is running. What should I do? Photoshop and Lightroom do not work for me right now.

    Close applications or contradictory processes

    Solve the problems of downloading and installation of Adobe Creative Cloud

    Mylenium

  • My programs take me to "what program do you use to run this."

    I just got rid of a virus with Norton 360. But now when I want to open anything it goes to a page asking you "what program you want to run it with ' and my options are internet explorer, adobe or Photoshop? I don't understand. That's happened?

    Hi Mike,.

    Thanks for posting the request in the Microsoft community. It seems that you are faced with the question with the file association.

    I suggest you to refer to the articles and check if it helps:

    Change the programs that Windows uses by default

    http://Windows.Microsoft.com/en-us/Windows-Vista/change-which-programs-Windows-uses-by-default

    Change default programs using Set Program Access and computer defaults

    http://Windows.Microsoft.com/en-us/Windows-Vista/change-default-programs-using-set-program-access-and-computer-defaults

    If the problem is not resolved, please respond with more details and we will be happy to help you.

    Thank you.

  • Have more than 80 processes running and no programs are open I can't stop any process?

    I have over 80 processes running when I'm looking just at my office and no program is open. How will I know which processes to stop? I don't want to spoil anything.

    The game, October 11, 2012 01:41:27 + 0000, PaulSeghers wrote:

    I have over 80 processes running when I'm looking just at my office and no program is open. How will I know which processes to stop? I don't want to spoil anything.

    I recommend stopping any of them. If you do, you may get dirty
    something to the top.

    Ken Blake, Microsoft MVP

  • What views of $ v can I use to monitor the parallel process?

    Hi all

    The version of DB is 11.1.

    I ran a sql in parallel. And I got the SessionID for the session.

    But when I referred to v$ px_session, v$ px_process or sql_monitor $ v even with this session id, I have nothing from these points of view.

    The exectuion plan showed that it used parallel exectuion.

    Could someone tell me what is the problem with my approach? Or it means that my sql has not used the parallel at all?

    Best regards
    Leon

    PARALLEL_MAX_SERVERS to 0 for the database instance. Confirm that there are no PX processes running on the instance of database (these would be process "ora_p0xx_SID", where xx is 00 to 99 (or 128)) on the server.

    Then set PARALLEL_MAX_SERVERS to 8 or 16 or more.

    Run your query/dml.

    Now, see if the ora_p0xx_SID process has created.

    Hemant K Collette

  • How to run an OWB 11 GR 2 process flow using OEMs jobs?

    How to run an OWB 11 GR 2 process flow using 11 g OEM jobs?

    In other words, iam trying to create a work of Oracle Enterprise manager for planning and executing an OWB process flow.

    Can one of you please heading me to the same documentation or enlist the steps?

    Hello
    Watch OWB QAnywhere (it's the release of 11 GR 1 OWB material but you can apply this procedure to OWB11gR2 as well)
    http://download.Oracle.com/docs/CD/B28359_01/OWB.111/b31279/api_4sqlforjobs.htm#BABEBGHA

    Kind regards
    Oleg

  • HP Officejet scan cannot be run, error "Scan cannot be performed because another program or computer uses the network device.

    Hello everyone,

    After you have installed Windows 8 on my desk, I lost the ability to scan with HP (Officejet 8500 pro wireless) solutions Center. Wen I click on scan (rather photo or document) I get a message: "Scan cannot be performed because another program or computer uses the network device. There is a little information on the HP site. I've tried all the suggested solutions, including several install and reinstall the HP software. The printing part works very well, and I can scan with other programs directly using the WIA driver. Now I scan documents to pdf authorizing searches, who wants me that this question be set quite often. Currently, I use my laptop for that. Everything works very well with Windows 7.

    Any help would be appreciated.

    Thanks, Johann

    I contacted HP about this specific problem.  They informed me that it is an upgrade of Windows 8 that Twain issue and they do not support this problem.  Reinstall the current drivers of hp does not help.

  • What are the programs should run at startup

    Paltalk I still have started from. went to windows to resolve problems by saying that I owe a lot running at startup

    Hello

    These methods allow to check what you have running at startup and use only those you need. Many
    programs will load in a start-up but really they do not need to be loaded automatically
    to work properly.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or
    Windows 7
    http://support.Microsoft.com/kb/929135

    Use advanced tools to solve performance problems in Windows 7 http://www.howtogeek.com/howto/6152/use-advanced-tools-to-troubleshoot-performance-problems-in-windows-7/

    Problems with the overall speed of the system and performance
    http://support.Microsoft.com/default.aspx/GP/slow_windows_performance?p=1

    Use advanced tools to solve performance problems in Windows 7 http://www.howtogeek.com/howto/6152/use-advanced-tools-to-troubleshoot-performance-problems-in-windows-7/

    Problems with the overall speed of the system and performance
    http://support.Microsoft.com/default.aspx/GP/slow_windows_performance?p=1

    How to troubleshoot performance issues in Windows Vista
    http://support.Microsoft.com/kb/950685

    Optimize the performance of Microsoft Windows Vista
    http://support.Microsoft.com/kb/959062
    To see everything that is in charge of startup - wait a few minutes with nothing to do - then right-click
    Taskbar - the Task Manager process - take a look at stored by - Services - this is a quick way
    reference (if you have a small box at the bottom left - show for all users, then check that).

    How to change, add or remove startup programs in Windows 7
    http://www.SevenForums.com/tutorials/1401-startup-programs-change.html

    A quick check to see that load method 2 is - using MSCONFIG then put a list of
    those here.
    --------------------------------------------------------------------

    Tools that should help you:

    Process Explorer - free - find out what are the files, registry keys and other objects processes have
    Open, which DLLs they have loaded and more. This exceptionally effective utility will show same
    you who owns each process.
    http://TechNet.Microsoft.com/en-us/Sysinternals/bb896653.aspx

    Autoruns - free - see what programs are configured so that it starts automatically when your system
    boots and you login. Autoruns shows you the full list of registry and file locations where
    applications can configure Auto-start settings.
    http://TechNet.Microsoft.com/en-us/sysinternals/bb963902.aspx
    Process Monitor - Free - monitor the system files, registry, process, thread and DLL activity in
    in real time.
    http://TechNet.Microsoft.com/en-us/Sysinternals/bb896645.aspx

    There are many excellent free tools from Sysinternals
    http://TechNet.Microsoft.com/en-us/Sysinternals/default.aspx

    -Free - WhatsInStartUP this utility displays the list of all applications that are loaded
    automatically when Windows starts. For each request, the following information
    appears: product Type of startup (registry/Startup folder), Command - Line String,
    Name, file Version, company name, location in the registry or the file system and more.
    It allows you to easily disable or remove unwanted programs that run in your Windows
    startup.
    http://www.NirSoft.NET/utils/what_run_in_startup.html

    There are many excellent free tools to NirSoft
    http://www.NirSoft.NET/utils/index.html

    Window Watcher - free - do you know what is running on your computer? Maybe not. The
    Window Watcher says it all, reporting of any window created by running programs, if
    the window is visible or not.
    http://www.KarenWare.com/PowerTools/ptwinwatch.asp

    Many excellent free tools and an excellent newsletter at Karenware
    http://www.KarenWare.com/

    I hope this helps.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • How to find and kill processes running on my mac

    Sometimes, when I try to delete the item in the trash, I get the message: "the operation cannot be completed because the item"xxx.pdf"is in use."

    How can I remove anyway?

    You can use the activity monitor to view the list of running processes and try to kill one. Be careful with this, you can potentially kill important processes.

    Use the monitor activity on your Mac - Apple Support

    It will not tell you which process is using the file however.

    Preview sometimes will not release a file after viewing. You can command-click the Preview icon on the dock and the attempt to kill him.

  • Satellite P775 stuck program on the use of the disc a vast

    Hello

    I have a strange problem on my laptop Toshiba Satellite P775 program with Windows 7.

    The laptop boot from time to time, slow and heavy i/o operations (I can see it via the indicator disc to surveillance). Windows not crushed, but the heavy IO makes the laptop unusable.

    Recently I reinstalled Windows (return to factory settings), but the issue has not disappeared.

    A few words about 'stuck ':

    1. once the laptop has been cooled for a long time - more than 1 hour - never occurs during initial start-up.
    2. when a problem starts, it does not disappear after stopping and restarting the laptop
    3 is coming during the connection process (stuck when connecting)
    4. never happened to me when you work in "safe" mode
    5. Windows not crushed, the mouse is generally sensitive - just very heavy and slow disk access makes virtually every application unusable.

    * The most recent research (quite shocking to me): once it goes all in running, I tried to unplug the power cord, then plug it in then after a few seconds. To my surprise, the "disruption" caused by the power connectivity - caused the laptop back to normal.*

    No clue on how to debug and fix the problem?

    Thanks for the care,

    Max

    Hello

    In my opinion, there are different reasons for this.
    First reason could be a large amount of processes that are running in the background
    Theoretically, it could be possible that a process stresses the CPU and thus the performance of the laptop is slowing.
    A HARD disk problem can cause this kind of problems too.
    As you can see really hard to tell what could cause this problem.

    From my point of view, you should start by running processes.
    Use check the CPU in the Manager of tasks (tab CPU) while this problem occurs.

Maybe you are looking for

  • Windows XP - internet after switching to Comcast

    Original title: bishopoz Operating Windows XP, internet works fine when you use AT & T UVerse and phone of MagicJack. When I cancelled AT & T and switched to Comcast XFinity, my internet no longer works on my PC (works fine on my MacBook).I went thro

  • GPS on SW3 seems only Lock when I turn the GPS on my phone! (Note 2)

    Hello Only, I decided to jump on the bandwagon of smartwatch due to the external GPS in the SW3.  So, I bought the SW3 less than a week ago.  I intend to leave my phone (Note 2) at home during the race, but it seems that I can't do it again!  I bough

  • Update of HP Pavilion G60-213EM

    Hello I own a used HP Pavilion G60-213EM. The system is very slow, and I mean only by commissioning. I think the upgrade of CPU and RAM. My computer has an Intel Celeron Dual Core T1600 @ 1.66 GHz factory and 1 GB of RAM. Planning to upgrade the proc

  • Error: The application could not start properly. 0xc000007b

    I use Windows 7 x 64 and whenever I run some programs installed, such as Celestia, Google Earth, and DOSbox, I get the message "the application could not start correctly (0xc000007b). Click OK to close the application. "I think that maybe it's becaus

  • LISTAGG and DBMS_SQL

    Oracle 11 g 2It is a check-in process. MY_TAB is the source table and MY_TAB_ARC is the check-in table. MY_TAB_ARC has two additional columns - dt_archived and remarks.Currently, these columns are the last columns of the table of check-in, but there