How to find a process is running or not.

Hi All,
I would like to find out whether a process is running or not. How to find out?
Thank you,
Kranthi.

Process
public abstract int exitValue()
Returns the exit value for the subprocess.
Returns:
the exit value of the subprocess represented by this Process object.
By convention, the value 0 indicates normal termination.
Throws:
IllegalThreadStateException - if the subprocess represented by this Process object has not yet terminated.
*/

Similar Messages

  • How to find MGP current status: running or not

    Hi
    We have a system that is making automatic changes to publication items/user subscription parameter values/ users access to applications/ applications etc on Mobile Server, based on our system changes.
    We have a class that among other is stopping the MGP job, in order to not affect sync processes while making changes to the repository. We found out in time, that this is very sensitive: making changes to repository or parameters while MGP is running can make
    Something like:
    public const string MGP_JOB_NAME = "MGP_DEFAULT";
    public void StopMGP()
    consolidatorManager.disableJob(MGPJOB_NAME);*
    public void StartMGP()
    consolidatorManager.enableJob(MGPJOB_NAME);*
    and in main process something like
    t*ry*
    _mgpManagement.StopMGP();*
    *//do whatever changes*
    catch
    *//some exception handling*
    finally
    _mgpManagement.StartMGP();*
    Our problem, is that stopping the job is not enough. In this way we just prevent MGP to start, if it is stopped. But we cannot find if is running at that moment or not, in order to wait until ends the work.
    We already tried to search for the current cycle, in MGPcycles table, but seems that the current cycle is being maintained in the memory until it is finished, and only after that is being written into the table. Another option may be to see if the sequence used for cycle id (if any) has the current value (nextval()) bigger than the history max_value + 1, but this is more a hack, that may not work in all cases.
    We tried also to use class MGPStatus, without success.
    If you have some information regarding this issue, would be helpful and appreciated.
    Thank you
    Florin

    Hi
    My issue is not a matter of job scheduler beeing started or not.
    The situation is like this:
    - oracle lite server is started and running for some time( days, weeks it does not matter).
    - I'm stopping the job for MGP in a certain moment, in order to apply some changes, but, if the MGP is currently running (it can run sometimes for more than 1 hour) I would like to know if it's running or not.
    Or, in other words: using the API, how can I see/retrieve the information available in webtogo application in MGP current cycle page.
    Thank you

  • How to find out if a process is running or not

    Hi
    I need to find out if a process is running or not in my system
    If it is running i Need to stop the process
    Can anyone help me with this.

    ctrl+alt+delete and look at the processes that are running on your system. I usually click on the memory headerbar so it sorts them my the process that is using the most memory. :-)

  • How to find the processing time of any query?

    im using oracle express edition, can anyone help me, how to find the processing time of any query?

    Trace the query and tkprof the generated trace file.
    http://download.oracle.com/docs/cd/E11882_01/server.112/e16638/sqltrace.htm#PFGRF01010

  • How to find users who are running IE with different credentials ?

    How to find users who are running IE with different credentials ? 
    Is there any tool or a solution in the market will help or a i can use GPO or even Power Shell ?
    thnx & Regards ,,

    Hi Salman,
    Based on your description, we can use Windows Credential Manager to check this. Windows Credential Manager stores credentials, such as user names and passwords  that we use to log on to websites or other computers on a network.
    Regarding Credential Manager, the following article can be referred to for more information.
    Credential Manager
    http://windows.microsoft.com/en-in/windows7/what-is-credential-manager
    Manage passwords in Internet Explorer using Credential Manager
    http://www.thewindowsclub.com/manage-passwords-internet-explorer-10
    Please Note: Since the above website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Best regards,
    Frank Shen

  • How i find my i5c is genuine or not

    how i find my i5c is genuine or not?

    See this thread: https://discussions.apple.com/message/23719985#23719985

  • How to find the process running for a specific cube on WINDOWS?

    Hi,
    how do we find the process of a cube and kill it if the server is a win 2003 server...
    when i go to the task manaer and search I only see then as esssvr ? but how do I match them to the specif cubes??
    in UNIX we can see them clearly as they have the cube name along with the pid and evertything else...
    please let me know.
    Thanks in advance.

    you actually have to go into the Essbase server log. When the application starts its pid is put in the log. I don't remember the mesage number, but it's in the log somewhere around a message started. Make sure you get the last started pid for an application. since the log can be for a long period, the application could have started multiple times
    Message was edited by:
    GlennS

  • How to find server process?

    how to find which server process(dedicated or shared)is using by the database for client connection to the DB?
    Thankx..

    SQL> select distinct server from v$session;
    SERVER
    DEDICATED
    SQL> select * from v$circuit;
    no rows selected
    If there is shared client connection , there will be entry in v$circuit
    Cheer,
    Virag Sharma

  • How to find the process responsible for deleting files

    Hi,
    We have a process which stores a file in a particular location say /tmp/mydir/. The files getting stored in this directory are getting deleted. Is there any way to find which process is responsible for deleting the file. Is there any way we can truss on the directory/file and check which process accessed it or deleted it.

    solquestions wrote:
    I tried: dtrace -n syscall::unlink:entryThat one looks good to me.
    While it picks up the unlinking(I tested by doing a rm of some files), I could not get the pid of the process doing such rm.....(or maybe the process exited...)You haven't asked it to print that information. Try:
    dtrace -n 'syscall::unlink:entry {trace(pid);trace(execname)}'
    I'd like to see the process/adpp/program, calling a particular system call....unlink, close, open etc etc...The above should do that.
    I wonder if dtrace can capture both library calls and system calls......Dtrace doesn't capture so much as it fires on probes. But yes, both libraries and system calls can have probes available.
    It seems functionality for capturing system calls from a process are more documrnte, and with examples, than, those asking for finding which system calls get opened by whom....
    I think all you're missing is adding some information to the trace output.
    Is getting unlink enough to find "what is removing files?"You might want to check rename as well.
    How do I drrace for "anything that touched taht file" or, "anything that touches files in a directory"That's actually a somewhat difficult task for dtrace. First, you might download the "Dtrace toolkit". One of the tools in there is "opensnoop". It reports on file opens and you can examine the script to see how it does it. You can even give a filename and it only reports when that filename is accessed.
    But the main problem is that files can have many names, and dtrace is just looking at the name in many cases. So "/etc/passwd" can be called "/etc/passwd", or if you're in /usr it could be called "../etc/passwd", or any of a variety of names. It's not too hard to set a probe predicate to fire only on a pattern match, so you could set it to only fire when the filename is matched.
    Good luck, and see if any of the existing tools in the toolkit are close enough that you can use them directly or modify them slightly.
    Darren

  • How to find business process diagrams of SAP reference model

    hello guys,
      I am reading book 'SAP R/3 Business Blueprint: Understanding Enterprise Supply Chain Management' recently. In this book, the author shows many EPC process diagrams of SAP reference model,but how could I find the process diagrams in SAP system.
      I google this 'SAP Reference model', and find transaction: SB09 Business Navigator-Process view. But I can not find this transaction in IDES4.7or ECC6 IDES.
    Thanks.
    Edited by: Justin on Jul 2, 2009 10:20 AM

    Hi RK v ,
    I really don't know what your actual requirement is , but if you want to know the objects as per the modification , then transport request will be much help to you .
    Have a look into table E070 and E071 .
    Regards ,
    Yogendra Bhaskar

  • How to find query processing time?

    im using Oracle Express Edition
    i want to find the processing time of a query?,
    anyone please specify briefly how to find the query processing time
    can i get the processing time of a query by using Express edition or should i install Enterprise Edition.
    with regards,
    ravikanth.

    This link will help
    http://forums.oracle.com/forums/thread.jspa?threadID=2210335&tstart=0

  • How to find the Last report run date

    Hello All,
    I have one ALV report.
    In that report i have to display the date on which the report was run last time.
    The user can run report both in backgroud as well as in forground.
    Cay anybody plz tell me how to find the date on which report was run last time.
    Thanks and Regards
    Sachin Yadav

    Hello Sachin,
    I agree with Thomas on this. That would be the simplest & fool-proof solutn. Alternatively, you can try to use the stmts: EXPORT/IMPORT TO DATABASE.
    Search in SDN you will find [similar posts|Get IP Address and Report Running Date and time;.
    BR,
    Suhas
    Edited by: Suhas Saha on May 18, 2009 3:44 PM

  • How to find out which query run how many times using ST03?

    Hi experts,
    I am trying to clean up all the junk queries in BWP. my questions is, How to find out that the particular query ran how my times in a year and by which user using ST03, How to do it step by step?
    I don't like to use statistic reports for this. How to do it using ST03?
    Please let me know. Thanks in advance.
    Sharat.

    Hi,
    Please find the below links which would help you solving you problem,
    SAP BW performance tunning : Includes screen shots
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/68fbb490-0201-0010-8eb5-f7e0adaff5bd
    SAP BW Query Performance Tuning with Aggregates:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3f66ba90-0201-0010-ac8d-b61d8fd9abe9
    With Regards,
    PCR

  • How to know BPEL process is running

    Hi,
    I have BPEL process which is triggerred by FileAdapter. File Adapter polls for every 120seconds and if any file exists, it reads and BPEL process is initiated.
    As BPEL proccess is big and sometimes it executes more than 120seconds and it depends on environment with less load process faster and more load its takes more time.
    Due to this is there a way to know BPEL process is running before fetching new file or before starting actual BPEL process.
    JDev: 11.1.1.6.0
    Thanks,
    Bhaskar

    Can a singleton bpel will resolve your problem ?
    At a time only one bpel process will be running there wont be any parallel instances for that bpel. In that way there wont be any second instance created until the first instance has done with its job.
    http://orasoa.blogspot.co.uk/2007/05/create-singleton-process.html
    http://blogs.bpel-people.com/2009/04/writing-singleton-bpel-process.html
    Give points - it is good etiquette to reward an answerer points (5 - helpful; 10 - correct) for their post if they answer your question.
    Thanks,
    Vijay

  • How to Find out Http connecton available or not

    hi,
    Iam developing mobile application in this i have to send datas to server using http connection.
    If any problem with http yhe datas should store it in local Db(RMS).
    How to find out either http connection established or not.
    i checked with disconnecting (with out run the server) there is no response
    how to proceed further please..

    Hi try to print the error message when there is no connection
    there must be some error code ,ideally it will take 120 seconds to decide whether connection is present or not ,
    u can use test connection using a relatively fast site like google
    additionally u can try timer to timeout before 2 mins..if it's much for you

Maybe you are looking for

  • Oracle developer & Server 6.0 for win-NT 4.0

    Can I install oracle 8.05 enterprise edition and oracle developer & Server 6.0 for win-NT 4.0 under the operating system Windows 2000 professional ? How can I perform this without trouble?

  • Last stock update Date Tab not updating in ICH

    Hi Team I observed that in ICH screen Last stock update Tab is not going to update every time while demand and stock information coming from ECC to ICH. There is no stock inconsistency. All stock tab information are updating correctly in ICH compare

  • How to integrate a sales process across multiple ERP systems with SOA?

    Over time we have merged with multiple companies that used to run on their own ERP system.  In the past we concerted them to our own R/3 instance.  Having recently upgraded from R/3 4.6 to ERP 6.0, we want to transition to a SOA architecture for inte

  • PDF/A-1b error

    Hi Everyone, I created a PDF/A-1b from an existing PDF files using Adobe Acrobat (version 9.5.0) Professional Preflight profile "Convert to PDF/A-1b (sRGB) (It is running in Windows XP). The PDF was converted successfully to PDF/A-1b. However when I

  • Adobe muse Download

    Hi! I recently downloaded Adobe creative cloud for students and teachers but I have a new computer. I had adobe Muse but on my new computer I could not pull it up or download it because it said I already downloaded the Student edition. So, I download