Any RunningApplications-like function for non-windowed processes?

Am I missing any RunningApplications-like function for non-windowed processes like Unix executables? To start with I'd settle for processes in user-space but would ultimately like to list processes like Activity Monitor does. Even comparing RunningApplications results to user space Activity Monitor results will show the difference.
As far as I can tell you need to go all the way down to kauth and kernel space to watch for non-windowed processes being launched. Is there somethig in-between I'm missing? A notification device about launching apps would be perfect if it cover all processes.
Thanks,
=Tod

I think kqueue may be able to do what you want. Look at the EVFILT_PROC filter. You may have to watch a number of processes - perhaps all of them. But that would tell you any time you get a fork and whenever a process is reaped.
I looked at kqueue at it does what I want but you need to register it on a by process/file basis which is great for a very specific set of things but not for overall system watching. (I also looked at fsevents but it is designed as a post-event notification system.) While NSWorkspace has the usual Cocoa model notifcation willlaunchApp, didlaunchApp, etc it seems that you need to get the kernel to watch the launch lifecycle of non-windowed functions.
I actually did manage to get a comprehensive list of running apps out of parsing sysctl output with much less trouble than I expected. So far I have managed to get the pid, uid and abbreviated processname and the list seems to match the Activity Monitor list - at least at this testing printf stage. Getting the username from uid should be trivial and the full file name is doable it just requires some struct length and offset math. I'd like the launch path information but I can live without it for monitoring purposes if I can't figure out how to get it.
This means that the monitoring part of the running system seems relatively straight forward - wrapping the call in an NSTimer and watching for changes in the returned results. But the watching of the actual starting and stopping of all processes remains some deeper work.
Thanks for all the suggestions,
=Tod

Similar Messages

  • Control-Shift-W activates Snow Leopard-Like exposé for all windows. Can this be disabled/changed?

    Running Mac OS X 10.7.2 on my MacBook Air, Control-Shift-W produces a Snow Leopard-like expose for all windows.
    While useful, this keyboard shortcut is wreaking havoc with my BBEdit settings. (Control-Shift-W is used to toggle "Selected text only" in the "Find" window.)
    Does anyone know a way to alter or disable this system shortcut? I haven't been able to find any information regarding this shortcut and I fear I may have altered an underlying property (using "defaults write…" at the command line) and I don't know how to revert what I (may) have done.
    Thanks in advance.

    I suspect that it's busy trying to mount a network file system of some type.
    Are there any errors in your logs that seem appropriate (viewable via Applications->Utilities->Console?)

  • There is any app like tasker for iphone thanks

    there is any app like tasker for iphone, thanks?

    No. Not based on what I can see from the Tasker web page. I wouldn't hurt to search the app store though. Some functionality may be available from apps there.

  • Is there any service like "kOversetFrameService" for indesign?

    Hi all
    I looked service providers there was "kOversetFrameService" for "incopy". is there any service like "kOversetFrameService" for indesign?
    thanks
    Hakkim

    Hi steven
    thanks for ur reply. I dont have much knowledge in sdk, how can i use it as seviceid. could u pls suggest?
    many thanks
    Hakkim

  • Signal for non-child process death

    I am porting an NT system to Solaris. One process (HM) is responsible for starting groups of server processes, monitoring for death of a process, stopping/restarting/recovering the group. I know how to port this using fork/exec to start processes and SIGCHLD to monitor for death of child.
    Now, for the hard part. If this HM process dies and is restarted by the OS, it reads a text file containing all the child processes and resumes monitoring them. This is done under Win32 API because we do a WaitForMultipleObjects() call and pass the process handles.
    How can a unix process monitor for the death of non-child processes (because after HM dies and is restarted the processes that it needs to monitor are not its children anymore)?
    Can a unix process "adopt" processes from init (which would be the parent of the children after HM died)?
    I thank you in advance for your kind consideration of my questions.

    You cannot rely on /proc - it's not standardized
    (yet?) across different UNIX'es.Any information on how to find out if and/or when it will be standardized?
    And there is no 'watchdogs' that would allow you to
    simply get a notification when specific /proc/<pid>
    directory vanishes - unless you want to poll it...
    Finally, you cannot write/create arbitrary stuff in
    /proc - it's not a real file system, just a [mostly]
    read-only interface to the OS guts...I was not planning on writing to it or making up arbitrary files. I was considering opening the /prod/<pid>/as file (the /proc man page says that it contains information about the address space of the process). I would open it read-only and pass the file descriptor to a select() call in the exceptfds array. I think that this will return as an exception when the process dies, because the file goes away.
    So I'd simply use pipes in, say, /var/tmp, or even
    /tmp...My issue with using pipes is that some of the processes that I want to monitor are third-party processes that are crucial to our software's proper operation (like the processes that make up the CORBA ORB). I do not have the source code and cannot make them open up a pipe. So, I am forced to rely on what the operating system will do for me.
    Please reply with any flaws in my thinking, any improvements on my idea, etc.
    Thanks,
    Raymond Hendrey

  • Document Splitting: Editing constant for non-assigned processes

    This query concerns assignment/editing of constants to non-assigned processes which is part of document splitting
    We currently have one controlling area and one profit center.
    we have assigned one constant named BQE: "imputation sur comptes de banquet" (which probably means bank charges) which defaults for profit center 1000
    Now we have a new company code that will use the same (controlling area remains same) constant. So, whenever this constant is called up for the new company code, we want it to default to a different profit center (2000). This substitution should occur at the line item level.
    If we use substitution, what would be the logic for this?
    Is there any other way to accomplish this requiement?
    Thanks!

    Vj
    You can assign default profit centers for GL account and company code combination in spro node
    "Assign Default Profit Center to Accounts"
    (FAGL_V_FAGL_T8A30)
    Regards
    Sach!n

  • Cross-Certification for Non-Windows Clients

    Still trying to get more information on getting my SHA256 root CA certificate signed by my SHA1 root CA (temporarily), and having non-Windows entities recognize that:
    Creating Cross-Certification between two root CA's within the same organization (one hierarchy is all SHA1 and the other is all SHA256) and distributing the CrossCA certificate is painless enough for Forest members because it gets published to
    AD and from their comes down to the Forest member certificates store (Trusted Intermediary).  But what is the best way to get non-Windows end entities to also recognize the CrossCA certificate?  The RFC (http://tools.ietf.org/html/rfc5280#section-4.2.2.1)
    states you can configure the AIA extension to point to a collection of certificates, but then that means (unless I am missing something) I need to modify the AIA extensions configuration on my SHA256 root CA to point to the PKCS7 container on my http location,
    then issue my SHA256 SubCA certificates to my subordinate CA's.  So this way when my SHA256 subordinate CA's issue end entity certificates to non-Windows entities the chain of trust will go back to my SHA1 root CA.
    Both hierarchies are 2-tier.
    End Entity cert from SHA256 Subordinate CA --> http location specifying the location of the SHA256 SubCA .crt --> http location specifying the location of the exported Cross-Certification certificate in PKCS7 format (which contains the
    SHA256 root CA certificate and the SHA1 root CA certificate).
    Does this seem like the correct configuration?  If so, how easy will it be to remove this configuration when the cutover is complete?  If this is all correct then I assume the only way to remove this configuration is to modify the AIA extension
    of the SHA256 root CA and then issue new SubCA certificates to my SHA256 subordinates.

    Elke,
    Thank you for the information.  I defintely have some other options to consider now.
    One odd thing I noticed in my lab is my setup appears to work differently than you described.  In my lab I have a crossCA certificate which was published automatically into AD when it was issued.  Since that has happened even when issuing
    new certificates to end entities that are aware of the new SHA256 CA's (and Trust them), all certificates still chain back to my SHA1 root CA.  They don't take the short route anymore.
    And because of the above behavior I ran a quick test:
    - I installed a Windows 7 machine and never joined it to AD (kept it in a workgroup)
    - I manually imported the SHA1 root CA certificate into its certificates store
    - Then I accessed a web site running on a Windows web server which had an SSL certificate from one of the new SHA256 Subordinate CA's (and was part of the domain so it trusted the new SHA256 CA's).
    The result was the Windows 7 machine trusted the certificate just fine.
    When I looked at the certificate through IE on that Windows 7 machine, it showed the SSL certificate chaining back to my SHA1 root CA which I manually imported earlier, so it was trusted.
    Perhaps this is where setting constraints in the policy.inf file come into play...not 100% sure.
    Anyway, for the reasons you pointed out to me and the fact that anchoring my SHA256 environment with a SHA1 CA isn't really recommended, I am going to explore some other ways to get this done.
    Thank you.

  • SCCM 2012 with SCM - support for non-Windows?

    Hello all,
    As part of compliance configuration, i came across the Microsoft's Security Compliance Manager 3.0 (latest version) mainly for compliance and remediation. But after going through their docs, I feel SCM is used only on Windows OS (clients or servers). 
    a] Does SCM support contact with non-Microsoft vendors to import security baselines?
    b] Does SCM support audit, compliance and remediation on non-windows OS devices? (clients/servers)
    Any help is greatly appreciated.
    thanks 

    This is the wrong forum to ask Security Compliance Manager based questions, it doesn't have any straight relationship with ConfigMgr. Correct forum is here: http://social.technet.microsoft.com/Forums/en-US/home?forum=compliancemanagement

  • How do I delete documents from my iPad that were added when it ran regular Acrobat, now that it has switched to DC?  The docs are not on the cloud, and DC does not seem to have a delete function for non-cloud docs.

    I use an iPad.  It automatically switched me from old-fashioned Acrobat to DC.  How do I delete docs that were put on my iPad with the old Acrobat?  They are not in the cloud, and DC does not seem to have a delete function for them.

    Hi,
    By default, Acrobat DC for iOS displays recently viewed files.  You need to switch to other file location (such as Local, Document Cloud, Creative Cloud) to delete, rename, move, or duplicate files.
    You can switch to Local, if you would like to see the files and folders that are locally stored on your iPad.
    Would you take a look at the following document to see how you can switch to other file location and delete files?
    How to manage files in Acrobat DC for iOS
    Please let us know if you have additional questions.  Thank you.

  • Hi there, have just tried purchasing an album in iTunes but the price tab is greyed out. This is like it for non explicit songs, yet the explicit songs and albums I can purchase fine. Seems a bit back to front to me, any ideas?

    Hi there,
    Have just tried buying an album in iTunes on my iPhone 5 and the price tab is greyed out. The album is "clean" yet all the explicit albums price tabs are fine and i can purchase and download fine. Seems a bit back to front to me, any ideas what's going on?

    Try this previous discussion:
    https://discussions.apple.com/message/1552107#1552107

  • Any tool like Swing for J2EE?

    Good afternoon, to see if I can clarify with your help.
    I'll do a migration to Java application that we use in my business. I will not go much into detail, but basically it is an application that uses multiple users from several different profiles, so only one application that I have thought about doing is a "web platform" where it all together.
    My knowledge of Java are regular, basic know-post-university J2SE, J2EE and little else. I started to do small things with JSP and good things seem to me comes in handy for my project, I have only one problem I have not found the solution (due to my ignorance). The problem is I do not know how to edit the forms-page visually. I do not know if there is anything Swing style, something like "design mode" where you can drag buttons, checkboxes, images ... but oriented to web. I've come to ask what I need is an editor such Dreamweaver, and then take the HTML to NetBeans ... the truth is that I'm lost.
    For that, I need to know how to edit J2EE developers websites, whether directly in HTML or PHP, whether via a Java tool or by external programs as Dremweaver web editing, or otherwise not know.
    Thank you very much.

    Forget that visual editors exist. If you want to do dynamic web programming, learn to do it through code, not by clicking. This means you'll have to know how to read, write, change and debug HTML, CSS and Javascript; the very minimal set of skills required for any web developer. There is nothing stopping you from using a tool like Dreamweaver to create the basic HTML/CSS framework, but it stops there.
    To make that process easier you may want to check out the Eclipse IDE as it has the ability to instantly make visual what you create without having to open your application in a browser, which can be a big help. That will add another thing to your TODO list though, learning how to properly use an IDE like Eclipse; you have to crawl before you can walk.

  • SPAU-like functionality for custom objects - Z* or Y* Objects?

    Hello Experts,
    My scenario is like below:
    Assume that my SAP System is DEV1 and it is of SAP 4.6X version. I have imported Program ZPGMA from foreign system DEV2. And are moved to the Production system PROD1. Now there are some corrections did in program ZPGMA in DEV1 system either by using modification assistant or by turning Modifications Assistant Off. And then moved to PROD1.
    Now we are going for Upgradation from 4.6X system to ECC 6.0.
    Now, i need to get the list of programs that have original system as DEV2 but are modified in DEV1.
    In brief, i am looking for some functionality similar to SPAU which would work for Custom objects (Z* or Y* Objects).
    Thanks and Best Regards,
    Suresh

    Hi Suresh,
    There is not any functionality like SPAU to find these kind of program.But if you want to find your DEV2 programs moved and modified in DEV1, just go in table TADIR and find source system field ( SRCSYSTEM ) as DEV2 .
    You will get list of program moved in DEV1.
    Regards
    NImesh S. Patel

  • Tab-like functionality for scrolling?

    Hi all, I need a shortcut (if available).
    Basically, I want the functionality of the 'tab' key under windows when a pop-up comes up with a choice, I want to hit a key, select the option I want then hit enter to execute that command.
    Program in question is Lightroom 3 Beta2, I have a rather large amount of pictures, but quite a few are rubbish and I want to delete them - if I hit delete I get a pop-up window with three options, and I want to choose the non-default one. Now, I have to use the mouse every time, which is annoying and time consuming.
    Is there a shortcut for this, or an app that can do this?

    You should be able to use the Tab key to cycle through the options in the pop-up. When the command you want is highlighted hit the Space-bar to execute it.
    Make sure "Full Keyboard Access" is set to "All controls" in the "Keyboard Shortcuts" tab of "Keyboard" system preference.

  • Function for non unicode-characters

    Hi
    is there a function that permit to  translate a  unicode characters to a non-unicode characters?
    For example with this function  "  à " must become " a ".
    thank you for your help

    Copy paste the below code and execute. This could also solve your problem.
    DATA: BEGIN OF trans OCCURS 0,
    auml TYPE x VALUE 'C4', "'Ä'
    c_8e TYPE c VALUE 'A',
    gra TYPE x VALUE 'E0', "'à'
    c_gra TYPE c VALUE 'a',
    END OF trans.
    DATA : input(40).
    DATA : output(40).
    input = 'ÄBàp'.
    output = input.
    TRANSLATE output USING trans.
    condense output no-gaps.
    write :/ input.
    write:/ output.
    Thanks,
    Senthil

  • Admin View or Functionality for the Business Process Owner

    Hi
    I have a requrirement that Business Process Owner (not the IT person), should be able the search the process instances and take action on them like "terminate process" or "Change Authorization".
    However the Business Process Owner do not want to go through the "Guided Procedures" -> "Administration" -> "General" menu clicks.
    Business Process Owner should able ONLY to get to "Maintain Processes" option of the "General" or "Overview" menu.
    Also,
    Business Proces Owner would like find the process instances based on only the  Instance Name and/or Instance Status and/or  Start Date Range.
    Is there a prebuilt functionality or is there way to utilize the SAP CAF delivered components by configuring the permission/roles. 
    IF NOT, how to access the process instance data so I can custom build this kind of functionality.
    Thanks,

    Hi Abhay,
    As I know GP does not provide such a pattern which covers your requirements.
    You can build this functionality in custom way.
    I propose the following:
    Use the
    public IGPProcessInstanceInfo[] com.sap.caf.eu.gp.process.rt.api.IGPRuntimeManager.getCompletedInstances(GPSearchRole searchRole, Date startDate, Date endDate, IGPUserContext userContext) ;
    and
    public IGPProcessInstanceInfo[] com.sap.caf.eu.gp.process.rt.api.IGPRuntimeManager.getRunningInstances(GPSearchRole searchRole, Date startDate, Date endDate, IGPUserContext userContext)
    to retrieve process instances by your search criteria.
    As search role you should use the GPSearchRole.OWNER.
    After this you can filter these processes by name in custom way and represent them.
    To terminate a process instance you can use the following method:
    public IGPProcessInstance com.sap.caf.eu.gp.process.rt.api.IGPRuntimeManager.stopProcess(IGPProcessInstance processInstance, IGPUserContext userContext) ;
    You need to use GP exposed public api:
    DC: caf/eu/gp/api
    PP: external
    POssible it helps.
    Best regards,
    Alaiksei

Maybe you are looking for

  • HT4366 ATV2

    The HDMI port on my television is broke and unfortunately it only has one.  I tried to connect the ATV2 via an HDMI to VGA cable, but when I change the input on the tv to HDMI/DVI, I get the 'No Signal' message.  I've also tried the RGB-DTV input wit

  • Function module to display process overview log from SM66 Transaction

    Hi, I want to display process overview log from SM66 Transaction in a report. Is there a function module which will help me in achieving that or is there any other method. Thanks in advance, Sandeep.

  • Date calculation check in a badi

    Hi all I want to do a check calculation in a badi - on an internal table of dates. In normal abap I was able to do it easily. but in oo abap, its not allowing me to do the arethmatic calculation on date fields.Below is the code: method IF_EX_PT_ABS_R

  • Trouble quitting applications in Lion

    iTunes, iPhoto, and now Fire Fox don't seem to want to quit. iTunes and iPhoto will quit (after several minutes) and if I try to force quit either, they are not reported as "not responding". Fire Fox may be an abberation because when it would not res

  • Error in syntax .check manual

    Hi I am getting on value of variable(sj) from database and storing in list and using that value to get ID from same table. Now problem ---- if value of variable (psj = yyuyu "ghgh jkjkj" ghghg ) OR (psj=hjhjhj 'hjhjh jkjkj' hhjhjh).It gives error "yo