Need to get a process status

Hi All,
I am new to solaris development. Following is my scenario. I need to monitor four different tasks running in solaris machine from another process running in the same machine. I do not have their processIDs. I knew only the process name.
How to ensure that required tasks are running correctly and alive, is there any system call (or) any other way available to get the status of a process by the process name. I do not want to use the 'ps' command inside my C program.

Process can write their proces IDs in a file when they start up. How to check whether the process exist?
Since I am new to solaris, please validate my below idea
1. Read the PID from the file.
2. Check the folder /proc/PID exist (If PID is 1917, then check for folder /proc/1917).
3. If the folder exist, then it ensures the process is running.
4. If the folder does not exist, it ensures process is not running.
(or)
If the above said idea does not holds good, Let me know how to check whether a process is running or not with the PID from C program?

Similar Messages

  • Invoice Plan: How to configure to get partially processed status?

    Hello experts:
    The issue is:
    The PO item has account assignment "Q".
    The invoice plan is partial plan (not periodic), and we don't use ERS, invoices are matched with MIRO manually.
    Say the order amount is $10,000, the plan is to have 2 invoices, first 40% for $4,000, second for 60% $6,000.
    The 2 plan items both have billing rule "1" Milestone billing on a percentage basis, and  have status "A" when it is created.
    The problem is that you don't really have control to make the actual invoices came in exactly $4,000 and $6,000.
    Say the first invoice came in and matched is $3,000, then the first invoice plan is automatically set as "C" completely processed regardless the difference of $1,000.
    But the commitment that was $4,000 is all gone. in CJI5 it shows commitment $0.
    So are there some solutions for this?
    1. Is it possible to set up so SAP would look at the difference and set the status to "B" Partially processed and get another plan line for the balance of $1,000? (Somebody is saying B is only for SD, which doesn't make sense to me)
    2. Is there some where to set up a tolerance to stop the invoice matching if the actual invoice is way off of the plans?
    Thanks!
    Regards
    Simon

    hi,
    You can define Payment block
    SPRO -MM-Logistic Invocie VerificationInvoice Block-detiremine Payment block.
    In this step, you define the payment blocks used to block invoices for automatic payment. Payment blocks apply to all company codes.
    When entering an invoice, the user can enter a payment block; the invoice is then only paid once the payment block has been deleted.
    You can maintain Payment block in the Vendor master so that it will block for payment.
    Regards,
    Rama Mohan Bangaru

  • Need to get record status

    Hi All
    I have a below requirement...
    Normally i have 3 blocks. One is master block and remaining blocks are details blocks(in different tabs).
    I can do query in all the blocks for the sake of fetching records.
    If i selected the record in detail block and tried to get the query mode it needs to perform the query in details block. It is working fine.
    If i didn't select any particular record in detail block and tried to get the query mode it needs to perform the query in master block. But here cursor is coming to detail block, and querying detail block when i did query.
    Requirement:
    Here i need to get the record status in detail block level. If the record is in selected status it should perform query in detail block, else cursor should move to master block level.
    I am not able get the record status in detail level.
    Can any one help on this?
    Thanks in advance.
    With warm regards
    Hari
    Edited by: 940598 on May 9, 2013 5:42 AM
    Edited by: 940598 on May 9, 2013 5:44 AM
    Edited by: 940598 on May 9, 2013 5:56 AM

    Hi Craig
    Thanks for your quick reply.
    I am using form 6i for my form development.
    Issue Description:
    When i try to query the field first time in Master block level, it will fetch the data both Header Block and Details block. As well as cursor point will be in both Mater and Detail Blocks level.
    When i try to query second time without selecting(Placing the cursor) any field in both blocks it is automatically querying Detail level Block (All Detail block records in read only mode).
    But it should query Master Level Block. Detail block has to perform query only when we select (Place cursor) the record in Detail Block.
    Answers for your questions:
    Can you prove a code sample?:
    I have used the below code in detail block level to move cursor from one block to in another block.
    When new Block instance:
    IF :SYSTEM.RECORD_STATUS = 'QUERY' THEN -- tried with 4 record status which you have provided
         GO_BLOCK ('XX_INV_SERV_DEMA_STG'); -- XX_INV_SERV_DEMA_STG is the detail block name
    ELSE
         GO_ITEM('XX_INV_ITEM_ELEMENTS_V.ITEM_NUMBER'); -- XX_INV_ITEM_ELEMENTS_V Master block name.
    END IF;
    The above query is not working fine.
    Requirement:
    When i try to query second time it should perform in master level block. Not in detail level block.
    Please reply for this requirement
    Thanks in advance.
    Regards
    Hari.
    Edited by: 940598 on May 10, 2013 5:22 AM

  • Can I get the GP status using GP API.

    Hi all,
    Can I use the GP API to get one process status present,for example,"reject" or "approve" according to the process instance ID?
    If there's a way,how can i archive this?
    Best regards,
    delma

    Hi,
    Using GP API it is possible to achieve the process status of any particular process.
    In the package com.sap.caf.eu.gp.process.api, we have several classes that can give the process such as IGP Process and the status can be achieved by the method getStatus.
    For more information refer to this link:
    http://help.sap.com/javadocs/nwce/current/gp/index.html
    Award points if helpful.
    Regards,
    Sujana

  • Is there any java api available to get the process identifier ?

    Hai,
    I am in need to get the process identifier of a running process.
    Is there any API available or any shell script which can be used in exec command
    to get it.
    Thanks in Advance.
    Kavitha M.

    Hint: Don't use the exec command! This would spawn off a new shell with a different PID. You might want to look at JNI (Java Native Interface) to attach a piece of C code to your Java application that can find out the PID.

  • Output type processing status

    Hello All,
    i have an output type for a delivery. whenever a new delivery is created or modified, i need to collect that information and write it to the application server, and also need to change the processing status of output type from yellow to green.
    please anybody tell where to write this logic and how to change the traffic signal status....
    thx in advance,
    Sippy.

    Hi,
    In NACE you will be provided with the output types................
    write a custom driver program that makes your work...and ask support team to configure your progam to
    the Standard SAP transactions where you want your program have to execute.
    thanks,
    vinayaka

  • 5. We need additional time to process your transaction You should get an email from us by next business day. If you don't hear back from us, you can check your order status on your account page or call us at +1 800-585-0774. If you're not in North America

    Step 5.
    5. We need additional time to process your transaction You should get an email from us by next business day. If you don't hear back from us, you can check your order status on your account page or call us at +1 800-585-0774. If you're not in North America, you can look up a local number here. For now, check out all the great free features of Creative Cloud! Get started with trials
    I keep getting this.
    The Bank and Paypal states that Adobe needs to process my transaction twice.
    I have no order number/ no status nor contact from Adobe. I called customer service and he transferred me to sales where the phone rang with no answer.

    Since this is an open forum, not Adobe support... you need to contact Adobe staff to help
    Adobe contact information - http://helpx.adobe.com/contact.html
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"
    -or by telephone http://helpx.adobe.com/x-productkb/global/phone-support-orders.html

  • What's status of my order?  We need more time to process your order.

    I cannot find on the Adobe site where to find the status of an order.
    Last Saturday I placed an online order for an annual subscription to the CC Photography package.  After I had completed all the steps a message was displayed on my browser that read something like "We need more time to process your order."  There was also a statement that said something to the effect that I would be contacted by email the next business day, but I have seen nothing.
    I'm certain this is not the place for questions about order status, but when I followed the steps in Contact Us, this is where I wound up.  I prefer to use email or the internal messaging system rather than phone, so I can have a record of what was said.
    Thanks - Dave

    This has been a colossal hassle.  Notice there's no reply to my question here about how to contact whoever the rep res referring me to.
    When you go through the order process it doesn't ask how your name appears on the credit card.  I'm "Dave" here, but on my credit card I'm David.  Maybe that's why it didn't go through.  Maybe it isn't wise to order on the weekends (I placed my order on a Saturday).
    In two chat sessions the rep said he (or she) would escalate the case and I'd hear in 24-48 hours.    Never heard a thing.
    I finally went through the order process on a Friday, edited my profile with my real name and it went right through.  I chose to download Photoshop CC 2014.  I got a Web page with the header Downloading now... or something like that.  But there was no activity indicator.  I tired the forum but the entire forum was down.  Finally after a useless chat I opted to start the download again.  The CC Application Manager started up and displayed a progress bar.  When it was finished I got a message saying the download had failed.  After a couple more tries I got PS and Bridge downloaded successfully then downloaded Lightroom.  BTW, you don't get the install files.  It installs as it downloads.  You can't tell it where you want it installed.  For us with a tiny boot SSD it's a squeeze.
    I've reactivated my Lynda.com membership and am catching up on what's new in PS CC 2013 and 2014.  Photoshop CC seems to be behaving OK, but I'm not sure if Adobe is ready for prime time.  Do you suppose they had a hand in crafting Healthcare.gov?. 
    - Dave

  • Error in getting process status for oracle instance: instance12- component: coreapplication_obisch1

    Hi,
    while uploading new rpd getting error message in enterpriise manger
    Error in getting process status for oracle instance: instance12- component: coreapplication_obisch1,chekced in the dignostic log found above mentioned error
    what can be cause of the probelm
    thanks

    Hi,
    1.Try using the sample rpd of it works, then the problem with the new rpd.
    2. Restart the service once then upload the new rpd.
    Regards,
    VG

  • Need table information for Business process ID and Business process status

    Hi Guys/Sap,
                         I need PI table for business process ID(BPM) and Business process status table .Kind if any one know help me out .
    I have checked blog but ia could only fine basic tables .
    https://wiki.sdn.sap.com/wiki/display/XI/Useful%20ABAP%20tables%20in%20SAP%20XI.
    Regards,
    Sriram

    Hi Sriram,
          Search SE11 for SWF* tables.
    Regards,
    Ravi

  • Processing Status on Sales Order

    I am configuring in SAP R/3 a Free Third Party Sales Order . . . The problem I am having is with the Processing Status area . . . specifically the Overall Status for the Header and the Item.  With the new set up neither of those fields show on the sales order,  and so the order does not show up on VA05 as open when first entered.  What would need to be done in configuration for these fields to be on the sales order, and to show the appropriate status?
    Update . . . The only way so far I have found to have these fields show on the sales order is by using the Completion on the item category, but from what I am reading it is not the suggested way to do it, yet the only way so far to get it on there.  And, the problem here is when in MIRO the PO on the Free Third Party Order, it does not complete the Sales Order Header or Item, so I still am unable to get the status to change.
    Any ideas?
    Edited by: Diane Thacker on Aug 4, 2009 9:41 PM

    Hi,
    Per standard process, the sales process will not complete unless the billing has been done for the sales order.
    What this means is once MIRO is done, the sales order is eligible for billing. You must complete the billing, so that the sales order wont appear in the VA05 list. Until billing is completed, the sales order status remains open.
    Regards

  • While creating PO,PR creater need to get notice

    Hi,
    My client is looking,when we create a PO with ref to PR ,that PR creator need to get a mail (external)..
    how to handle this ..
    could  we able to do through message type?
    if so ,please advise ...
    but whatever the  possible way is o.k...

    you can make it with technical development
    Logic should be -
    When you save a PO with ref to PR, your technical development will capture the PO # programatically & put a check  
    if Processing status- EBAN-STATU = B (PO created),
    create a Function Module which will sent a mail
    to PR creator - EBAN-ERNAM
    Hope this will help

  • Need to get data for specific user logged in

    Hi All,
    I need some pointers for the sql query. I have a query that extracts approval history information along with current status of person who submitted for changes of his direct reportee.
    what I need is to get the only the approval data of logged in person( top to bottom/bottom to top persons involved) in approval process.
    we built the report, but it gets all of the approvals data from HRSS related tables.
    I need to get the data of person who logged in.
    is this possible? can someone please provide some pointers?
    Thanks in advance..

    @Pablolee, Thanks for the reply
    Pointer number 1.
    Provide a (working)test case so that your requirements are clear.
    -- scenario
    lets say we have   Manager1, Manager2, Manager3
    Here is test case
       Manager1 - Submitted person salary change and went for approval. In this approval process It went upto manager level say Manager3.
    the sql query i have gets all approval process data of all other's manager's involved in whole approval process. as Manager1 when i logged in I wanted to see where this salary change record is pending i.e Manager3.
    but my query show all others data also. can you tell me how to get Manager1(top to bottom OR bottom to top of this person logged in) change record submitted data in approval process.
    I hope you understand this, If possible please let me know how to achieve this.
    Thx..

  • HT1212 need to get the "iPad is disabled" off my iPad so I can use it

    need to get the "iPad is disabled" off my iPad so I can use it

    How can I unlock my iPad if I forgot the passcode?
    http://www.everymac.com/systems/apple/ipad/ipad-troubleshooting-repair-faq/ipad- how-to-unlock-open-forgot-code-passcode-password-login.html
    iOS: Device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212
    How can I unlock my iPad if I forgot the passcode?
    http://tinyurl.com/7ndy8tb
    How to Reset a Forgotten Password for an iOS Device
    http://www.wikihow.com/Reset-a-Forgotten-Password-for-an-iOS-Device
    Using iPhone/iPad Recovery Mode
    http://ipod.about.com/od/iphonetroubleshooting/a/Iphone-Recovery-Mode.htm
    Saw this solution on another post about an iPad in a school environment. Might work on your iPad so you won't lose everything.
    ~~~~~~~~~~~~~
    ‘iPad is disabled’ fix without resetting using iTunes
    Today I met my match with an iPad that had a passcode entered too many times, resulting in it displaying the message ‘iPad is disabled – Connect to iTunes’. This was a student iPad and since they use Notability for most of their work there was a chance that her files were not all backed up to the cloud. I really wanted to just re-activate the iPad instead of totally resetting it back to our default image.
    I reached out to my PLN on Twitter and had some help from a few people through retweets and a couple of clarification tweets. I love that so many are willing to help out so quickly. Through this I also learned that I look like Lt. Riker from Star Trek (thanks @FillineMachine).
    Through some trial and error (and a little sheer luck), I was able to reactivate the iPad without loosing any data. Note, this will only work on the computer it last synced with. Here’s how:
    1. Configurator is useless in reactivating a locked iPad. You will only be able to completely reformat the iPad using Configurator. If that’s ok with you, go for it – otherwise don’t waste your time trying to figure it out.
    2. Open iTunes with the iPad disconnected.
    3. Connect the iPad to the computer and wait for it to show up in the devices section in iTunes.
    4. Click on the iPad name when it appears and you will be given the option to restore a backup or setup as a new iPad (since it is locked).
    5. Click ‘Setup as new iPad’ and then click restore.
    6. The iPad will start backing up before it does the full restore and sync. CANCEL THE BACKUP IMMEDIATELY. You do this by clicking the small x in the status window in iTunes.
    7. When the backup cancels, it immediately starts syncing – cancel this as well using the same small x in the iTunes status window.
    8. The first stage in the restore process unlocks the iPad, you are basically just cancelling out the restore process as soon as it reactivates the iPad.
    If done correctly, you will experience no data loss and the result will be a reactivated iPad. I have now tried this with about 5 iPads that were locked identically by students and each time it worked like a charm.
    ~~~~~~~~~~~~~
    Try it and good luck. You have nothing more to lose if it doesn't work for you.
     Cheers, Tom

  • Processing Status in Travel Request ESS

    Dear all Gurus,
    I am implementing travel request approval process on ESS/MSS. After employee submits an travel request via ESS the processing status is set to have 'Released for Approval' status. Once manager approves the travel requests via MSS processing status gets 'Approved' status.
    The problem I am having is when manager rejects Travel Requests. The processing status is changing to 'In Processing' instead of 'Rejected'.  Do you know what needs to be done so that the status  is set to be 'rejected' once the manager rejects the Travel Requests.
    Regards,
    Namsheed

    You can change the text as indicated below ie 1411965 has steps in it http://wiki.scn.sap.com/wiki/display/ERPHCM/Adding+Reject+or+Cancel+Step+to+Workflow+Template SAP NOTE # 1411965 - Status after action in FITV_POWL_APPROVER, provides more information on this limitation and the configuration steps. Status comes from Table PTRV_PERIO Field ANTRG (Travel Request or Trip Approved (Indicator)) ABREC (Open / To be Settled / Settled (Indicator)) i.e. we have only request status from 1 - 6 and settlement status from 0 - 4. See the domain fixed values. BAPI_TRIP_CANCEL can be used to enhance the statuses. Please check the class CL_FITV_POWL_UTIL and method GET_STATUS_AFTER_REJECT

Maybe you are looking for

  • G5 as monitor?

    Any way to use an iMac G5 as a second monitor, with a MacBook Pro? Maybe the other way around? Use the MBP as a 2nd monitor to the iMac? Thanks.

  • BSOD KMODE_EXCEPTION_NOT_HANDLED on 10041 in KVM with OVMF

    First, the crash dumps: http://1drv.ms/1GJxoRC (sorry about the non-English (Swedish) in there) In my admittedly experimental setup that has so far been working unexpectedly well and stably, I started getting BSODs on launching a number of applicatio

  • Email marked as read on outlook without actually reading

    Hi, When I get an email in outlook it shows as unread. Once the email is sent to my blackberry the status on outlook changes to read (even without me ever opening the email on outlook or the blackberry). How can I stop this? I did a lot of research b

  • Slow to open browser pages

    Safari opens very slowly, very inconsistent.

  • Order not distributed

    Hi The CRM Slaes Order  if we change anything its not distributing R/3( there is no sale order is created up to now) at the same time its not throwing any Bdoc error it very strange situation. In Bodoc message” no upload into R/3” For this I checked