how to identify whether a process has completed or not - Unix

This is a discussion on how to identify whether a process has completed or not - Unix ; i am scheduling a process through crontab and i have to start another process once this first process gets completed... how to check whether the first process has got completed or not... can anybody help me regarding this.. Thanks Star...

+ Reply to Thread
Results 1 to 3 of 3

Thread: how to identify whether a process has completed or not

  1. how to identify whether a process has completed or not

    i am scheduling a process through crontab and i have to start another
    process once this first process gets completed... how to check whether
    the first process has got completed or not...
    can anybody help me regarding this..

    Thanks
    Star


  2. Re: how to identify whether a process has completed or not

    Process 1 creates a process status file:

    echo $$>/somedir/mypid.file
    ..
    ..
    ..
    do stuff
    do stuff
    do stuff
    ..
    ..
    ..
    rm /somedir/mypid.file

    Have process 2 check for /somedir/mypid.file. If it does not exist, process
    1 finished. If it exists, either the process 1 is still running, or it died
    without deleting the file. You can use ps -fp `cat /somedir/mypid.file` to
    check to see if the process is still running or not.


    "star" wrote in message
    news:1143096704.079642.140770@e56g2000cwe.googlegr oups.com...
    > i am scheduling a process through crontab and i have to start another
    > process once this first process gets completed... how to check whether
    > the first process has got completed or not...
    > can anybody help me regarding this..
    >
    > Thanks
    > Star
    >




  3. Re: how to identify whether a process has completed or not

    In article <1143096704.079642.140770@e56g2000cwe.googlegroups. com>,
    "star" wrote:

    > i am scheduling a process through crontab and i have to start another
    > process once this first process gets completed... how to check whether
    > the first process has got completed or not...
    > can anybody help me regarding this..
    >
    > Thanks
    > Star


    If you really MUST ask a question in multiple newsgroups, please
    cross-post rather than posting the same message twice.

    See the "Crossposting and Multiposting" section of


    --
    Barry Margolin, barmar@alum.mit.edu
    Arlington, MA
    *** PLEASE post questions in newsgroups, not directly to me ***
    *** PLEASE don't copy me on replies, I'll read them in the group ***

+ Reply to Thread