Get process ID by part of its process name

I have a process which can change of name depending on the version of the application which runs that process.
For example:
myProcess64.exe
myProcess65.exe
Is there a way using Sigar to get the process Id by specifing something like `myProcess%` ?
Right now I'm using this:
ProcessFinder find = new ProcessFinder(this.sigar);
long[] pids = find.find("Exe.Name.ct=" + this.processName);

Sadly Spotlight's string matching algorithms are anything but intuitive. While Spotlight may be "smart" enough to know that a search for "Paris" is not intended to search for "comparison", it apparently assumes bit too much when it determines that a search for 'ft' does not intend a search for the string embedded in 'usft'. The sadly inescapable upshot of this is that if you want Spotlight filename searches to be effective, you either have to memorize its idiosyncratic rules and set up your searches accordingly, or start naming your files in a way that conforms to its search capabilities. Of course if you have a few hundred or thousand files that you named during the pre-Spotlight period 1984 - 2005, you may have to use another search utility, like the third party EasyFind, to continue filename-based searches with any efficiency.

Similar Messages

  • ERROR:Could not read archive file - during Processing Base System Part 2

    Hi there,
    What I have:
    * I have problem with installation of the Mac OS X Panther v10.3 on iMac.
    * I have 3 original CDs (black with silver X).
    What I did:
    * I made new 1 partition and formated disk as Mac OS Extended (Journaled) over the Disk Utility in the first CD as normal without additional options (if I tried to format disk with zero all data and 8 way random write format after 3 days computer freeze)
    * I verified disk over this utility - that was ok - HFS volume verifed.
    * Then I restarted the computer and ran installation from this first CD
    What happened:
    * installation did not finish, because there were some problems during installation process.
    * i tried to customize installation just for essential work (without other languages support, printers etc), but it was still the same problem
    Installation log:
    After I choosed installation type, there was first error, but it did not look like important.. - root: bootstraplookup(): unknown error code
    Checking your installation disk - OK
    Preparing disk - OK
    Preparing base 1 and 2 - OK
    Other preparing.. - OK
    Processing Base System Part 1 - OK
    Processing Base System Part 2
    ==
    ERROR:Could not read archive file. - pax: Invalid header, starting valid header search.
    ERROR:Could not read archive file. - pax: Invalid header, starting valid header search.
    last message repeated 2 times
    ERROR:Could not write file. - pax: WARNING! These patterns were not matched:
    Some files for Essentials may not have been writen correctly.
    root: Installer[108] Exception raised during posting of notification. Ignored. exception: Some files for Essentials may not have been written correctly. (code 1)
    Install Failed
    Error detected
    Name: NSGenericException
    Reason: Some files for Essentials may not nave been written correctly. (code 1)
    ==
    It seems like a problem with reading some data from the CD, but during the installation checking of disk was ok.. maybe it can be problem with the cd-rom..? Or problem with data on cd-rom - I mean bad archive file..? But it is original CD.. What do you think??
    Thank you!

    Tomas,
    On THIS Page, locate your iMac model.
    From the Documents column, click on the appropriate number link.
    Using the info in the document that opens, locate the serial number of your iMac.
    On THIS Page, in the text field for Search Tech Specs, enter that serial number.
    Click on the model of iMac that appears.
    Post a link to the page that opens, or post the info requested below.
    Exactly which model iMac is it?
    What is the Processor speed?
    What size is the Hard Drive?
    How much Memory is installed?
    What type of internal Optical Drive does it have?
    Which version of OS, was the original Installed Software?
    ali b

  • Can I get a List of all the running processes in the system using java ?

    I want a complete list of all the Running processes currently in the system.
    List of running processes is like, in MS Window environment while we presses ctrl + alt + del and we get a small window containing a list of all the running processes currently in system.
    I hope somebody have done the same and will help me.
    thanx.

    Here is the sample code to get All running process in your system .
    Its in C++.And you have use JNI to use this code.
    For complete project goto
    http://www.mindcracker.com/mindcracker/c_cafe/winapi/protracker.asp
    typedef BOOL (WINAPI * PFNENUMPROCESSES)(
    DWORD * lpidProcess,
    DWORD cb,
    DWORD * cbNeeded
    typedef BOOL (WINAPI * PFNENUMPROCESSMODULES)(
    HANDLE hProcess,
    HMODULE *lphModule,
    DWORD cb,
    LPDWORD lpcbNeeded
    typedef DWORD (WINAPI * PFNGETMODULEFILENAMEEXA)(
    HANDLE hProcess,
    HMODULE hModule,
    LPSTR lpFilename,
    DWORD nSize
    //unsigned int i;
    static HMODULE hModPSAPI = 0;
    static PFNENUMPROCESSES EnumProcesses = 0;
    static PFNENUMPROCESSMODULES EnumProcessModules = 0;
    static PFNGETMODULEFILENAMEEXA GetModuleFileNameExA = 0;
    if ( !hModPSAPI )
    hModPSAPI = LoadLibrary( "PSAPI.DLL" );
    if ( !hModPSAPI )
    return FALSE ;
    EnumProcesses = (PFNENUMPROCESSES)
    GetProcAddress( hModPSAPI,"EnumProcesses" );
    EnumProcessModules = (PFNENUMPROCESSMODULES)
    GetProcAddress( hModPSAPI, "EnumProcessModules" );
    GetModuleFileNameExA = (PFNGETMODULEFILENAMEEXA)
    GetProcAddress( hModPSAPI, "GetModuleFileNameExA" );
    if ( !EnumProcesses
    || !EnumProcessModules
    || !GetModuleFileNameExA )
    return FALSE;
    LV_ITEM lvi;
    CString str, str1;
    if ( !EnumProcesses( aProcesses, sizeof(aProcesses), &cbNeeded ) )
    return FALSE;
    cProcesses = cbNeeded / sizeof(DWORD);
    char szProcessName[MAX_PATH] = "unknown";
    for ( int i = 0; i < cProcesses; i++ )
    HANDLE hProcess = OpenProcess( PROCESS_QUERY_INFORMATION |
    PROCESS_VM_READ, FALSE, aProcesses);
    if ( hProcess )
    HMODULE hMod;
    DWORD cbNeeded;
    if ( EnumProcessModules( hProcess, &hMod, sizeof(hMod), &cbNeeded) )
    GetModuleFileNameExA( hProcess, hMod, szProcessName,
    sizeof(szProcessName) );
    str = szProcessName ;
    str1.Format(": %d ", hProcess );
    str += str1 ;
    m_list.AddString ( str );
    UpdateData(TRUE );
    CloseHandle( hProcess );

  • In installation process of Acrobat Professional 7 , its showing that Adobe Pdf printer is not Installed...need help to install the software completely

    In installation process of Acrobat Professional 7 , its showing that Adobe Pdf printer is not Installed...need help to install the software completely

    If it is Win 7 or later, the Adobe PDF printer for AA 7 will not install and AcroTray will not function. You will have to install a PS driver from Adobe or maybe an HP color PS printer driver. Then edit the driver properties and change the name to Adobe PDF and the port to FILE. You will always have to do an extra step in creating PDFs by opening the file that is created in Distiller to get the PDF.
    If you are talking about Win 8, you may not be successful at all. If you got Acrobat and Distiller to install, then there is a chance.

  • Strange issue - XI somtimes process a file and sometimes its not detected

    Dear friends,
    We have a strange problem. I’ll describe the situation:
    We have a simple file to file scenario without any mapping or File Content Conversion. Daily a sender system puts a ZIP file on a server and XI processes this file.
    The strange thing is that XI sometimes processes this file and sometimes its not detected at all. After our analysis we come to conclusion that its not random.
    We have looked at almost everything. We have checked the:
    File name;
    Size of the messages.
    Authorisation;
    Users that are assigned to the processing job.
    Has anyone experienced the same problem or does anyone has a suggestion?
    Helpful points will be rewarded,
    Kind regards,
    Kamran

    Hi Mickael,
    There are no stupid questions, there are only stupid answers. So I hope my answers are not stupid
    1. what is your Polling Interval of your Sender Agreement ? Once a day ? every 60s ? etc...
    because you say that your Legacy put the file Daily.
    Answer: The polling Interval is 400 seconds and Modification Check is 400000 Msecs
    2. Are you sure that your Legacy does not put the file after or during the XI adapter try to catch it?
    Answer: No Because Modification Check works perfectly and we get alerts if the file is modify during the process.
    3. Does your filename is always the same ?
    4. or Have you a filename which can changed and which is case sensitve (lowercase and uppercase).
    Answer: It has always the same name and It starts with O2C.zip
    5. What are the size of your failed file?
    Maybe it's too big and maybe you have a timeout somewhere (for instance into the adapter log)
    Answer: It's not too big, it varies from 20 MB to 100 MB and we know that we can process files up to 700 MB
    As I told before we have checked everything. Its very strange...
    Do you have any other suggestion?
    Regards,
    Kamran

  • Any java API to get the metadata for a deployed bpel process in soa/bpm11g?

    Hi,
    Just wonder if this is possible, that there is some existing java api to retrieve the metadata (containing activities, isSynchrous, version information etc) for a deployed bpel process? If not, is there any other way to achieve this goal ( or example query database table directly)?
    I can only find this link for soa11g java api. I am able to invoke the bpel process using this API(direct binding) from java client.
    http://download.oracle.com/docs/cd/E14571_01/apirefs.1111/e10659/index.html?overview-tree.html
    Any help will be greatly appreciated.
    Thanks,
    Bin

    What I find so far:
    1. can get some process property values from ComponentInstance class, see its api.
    http://download.oracle.com/docs/cd/E14571_01/apirefs.1111/e10659/oracle/soa/management/facade/ComponentInstance.html
    Please refer http://blogs.oracle.com/soabpm/2009/07/soa_suite_11g_api_tricks_part.html of how to get the component instance (contain the bpel process) from a composite object
    2. in dev_soainfra database schema, the CUBE_INSTANCE table contains most of soa bpel components information. The BPM_CUBE_PROCESS table seems to contain only the process defined in a bpm application. This sounds a little confused, if we want to develop a bpel application, should it be put in soa or bpm application and what is the difference?
    Please feel free to correct any mistakes here.

  • [svn] 3347: -remove the javascript directory since it is getting cleaned and recreated during the build process .

    Revision: 3347
    Author: [email protected]
    Date: 2008-09-25 06:27:28 -0700 (Thu, 25 Sep 2008)
    Log Message:
    -remove the javascript directory since it is getting cleaned and recreated during the build process.
    -this should make SVN happy and get the builds working again
    Removed Paths:
    flex/sdk/trunk/frameworks/javascript/FABridge/samples/srcview/source/fabridge/javascript/

    - Where? That depends upon what you what. But, going by the letter of what you asked, you shouldn't deploy any applications or packages if you want them on your newly images systems, you should make them a part of the TS using Install Software and Install
    Application tasks.
    - How many times? You should only need one although depending upon what you are deploying and if you are using offline updates, some folks add more. I typically use two one right after the Setup Windows and ConfigMgr task (just like the task sequence wizard
    builds for you) to update the OS and "things" in the image and one at the end to catch additional updates for apps and components added during the TS. Note that you also have to initiate an update scan cycle for additional install update tasks to work. Do
    this by adding a run-command line task before the second Install Updates task with the proper WMIC incantation.
    - Offline Updates only injects CBS updates into the image which are typically just core OS updates. You should also update your image though to include non-CBS updates. Using a build and catpure task sequence makes this easy.
    Jason | http://blog.configmgrftw.com

  • I keep getting a pop-up WEBKIT 2 WEB PROCESS.exe has stopped working and then I can't do anything -- any suggestions as to how I can get rid of this one?

    I keep getting a pop-up WEBKIT 2 WEB PROCESS.exe has stopped working and then I can't do anything -- any suggestions as to how I can get rid of this one?
    but i using safari on windows7.

    Uninstall Safari and reinstall:
    Safari 5.1.7 for Windows - Support - Apple
    If this doesn't work, I suggest migrating to a different browser given that: Farewell Windows Safari, as Apple excludes its homegrown browser ...

  • Relating a Request Number with its Process chain

    Hi experts!
    Do you know if there is anyway (with tables) of relating a "Request number" with its Process chain?
    Thank you very much in advance!

    Hello
    I guess there is no direct way, but you can get it by following:
    1) From table RSREQDONE, you can get infopak name by giving a request no.
    2) Then from table RSPCCHAIN, For Type = 'LOADING', VARIANTE field give the Infopackage name and it will give u the PC.
    Regards,
    Shashank

  • Is "Geography Name Referencing Program" part of upgrade process?

    Hi all,
    We have been upgraded to R12.1.3 and currently into first iteration.
    When querying the old transaction from Transaction workbench window we get, ""The system cannot determine geographical information for this location and cannot derive a tax jurisdiction. Please contact your system Adminstrator" error.
    I have run the "Geography Name Referencing Program" after getting this error. and that error got resolved.
    Kindly Advice,  "Geography Name Referencing Program", is it a part of upgrade process or we have to manually run the program.
    Thanks,
    AtulR

    I have seen the same document and ran the Geographu run referencing program. But my question here is, should we run this program immediately before releasing to Application team which is going to work on Applications
    Have you reviewed the post concurrent programs which are kicked off as part of the upgrade process to verify if the concurrent program was completed successfully or not? The program will be submitted by the upgrade process (as mentioned in the doc that you have already reviewed) and if that's the case the point here is to verify if it completed successfully or not.
    If the program ran successfully and you still hit the same issue then please review the docs in my previous reply. If the docs don't help then please log a SR.
    If the program failed to run then you will need to run it manually.
    If the program was never run by the upgrade then run it manually.
    Thanks,
    Hussein

  • Sending an email as part of the process when clicking on the 'Save' Button.

    Would like to learn how to do this:
    Do you have a purchase card () Yes () No
    ~~~~~~~~~~~~~~~~~~~~~~~~~~
    If the user selects 'Yes', I want to send an email as part of the process when the user clicks 'Save'.
    But I also have an item, P2_EmailSent that I would like to flag as being sent, along with the date it was sent, P2_DateEmailSent.
    Then, after a week (check P2_DateEmailSent) from date it was sent, send it again.
    Please let me know if you need more details?

    hi Zahid Khan,
    as said i tried the same.
    i have created a button "send" action :submit.
    and also have created a process"send mail" with the folloing code
    DECLARE
    l_body CLOB;
    BEGIN
    l_body := 'Thank you for your interest in the APEX_MAIL package.'||utl_tcp.crlf||utl_tcp.crlf;
    l_body := l_body ||' Sincerely,'||utl_tcp.crlf;
    l_body := l_body ||' The APEX Dev Team'||utl_tcp.crlf;
    apex_mail.send(
    p_to => '[email protected]',
    p_from => '[email protected]',
    p_body => l_body,
    p_subj => 'APEX_MAIL Package - Plain Text message');
    APEX_MAIL.push_queue;
    END;
    and , Process Success Message as "done" and When Button Pressed (Process After Submit When this Button is Pressed): "SEND" WITH Process Point : "ON SUBMIT AFTER COMPUTATIONS AND VALIDATION"
    The process is running.., getting the """success message""" but unable to""" get the mail""".(tried different combinations of mail ids)
    any help !!!

  • Trying to create a Photomerge in Bridge, when the files open in Photoshop ( small jegs ) , I get a error message of " Unable to process latte files " / " null is not an object "

    Trying to create a Photomerge in Bridge, when the files open in Photoshop ( small jegs ) , I get a error message of " Unable to process latte files " / " null is not an object "
    Please help

    Wait a second, Photoshop can make lattes now?  Personally I prefer my coffee black, but man have I been under-utilizing this program.

  • How do I get rid of "Windows No Disk Exception Processing Message c0000013 Parameters 75b6bf7c 4 75b6bf7c 75b6bf7c" when firefox starts up ? Does not show a solution!

    How do I get rid of "Windows No Disk Exception Processing Message c0000013 Parameters 75b6bf7c 4 75b6bf7c 75b6bf7c" when firefox starts up, I have to hit continue twice to get past this error message. Then all is OK. The solution shown for this thread does not make sense.
    == This happened ==
    Every time Firefox opened
    == Firefox was updated

    In Google, search for ""Windows No Disk Exception Processing" (including quotation marks). Lots of different answers out there.
    632 results on this search limited to the last year:
    https://encrypted.google.com/advanced_search?q=%22Windows+No+Disk+Exception+Processing%22&hl=en&lr=&tbs=qdr:y&prmd=df

  • The on off button no longer works on my iPhone 4s. If I update my iOS will my phone turn itself off as part of the process? If it does I won't be able to turn it back on so I need to know but can't remember from last time!!!

    Will my iPhone 4s turn off as part of the process of updating my iOS? The on/off button on my iphone doesn't work so I can't allow my phone to run out of battery or turn off because I will not be able to turn it back on.

    Ok here is a nuance
    Try it - when your phone locks
    Insert the charging cord which is connected to a power source on the other end  - wait about a minute - and then take it out
    The screen will "wake up"
    That is always your way out
    I use assistive touch as well to lessen the wear and tear on my home button
    Sleep mode is what your phone does when you are asleep
    (906)

  • Today is April 10, 2013. I try to login to iTunes connect and I keep getting the message "An error has occurred processing your request. Please try again later or send an email for assistance." It never tells us what email address we need to write to.

    Today is April 10, 2013. I try to login to iTunes connect and I keep getting the message "An error has occurred processing your request. Please try again later or send an email for assistance." It never tells us what email address we need to write to.

    The problem was solved by Apple Technical Help. The process is as flollows:
    1. Open Safari
    2. Menu item Safari-Reset Safari - remove all website data - reset
    3. Now if you try to login on iTunes connect it will work.

Maybe you are looking for