how to tell when jobs are finished
Many of your questions may have already been answered in earlier discussions or in the FAQ. The search results page will indicate current discussions as well as past list serves, articles, and papers.
Sean Dilda agrajag at scyld.comWed Aug 1 04:41:37 PDT 2001
- Previous message: how to tell when jobs are finished
- Next message: how to tell when jobs are finished
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Wed, 01 Aug 2001, Nicholas Henke wrote: > Hello-- > I am writing a resource manager based on top of bproc, and I am > working on job execution. I am wondering if anyone has any ideas on how to > tell when a job is finished executing. The only solution that I have > thought of is to wrap the command in a shell script that tells the > resource manager that the job is done executing. > > Any help would be greatly appreciated I'm going to assume you're wanting to know how to do this from a programming level. My advice is to save the pid of the job, then use waitpid() with the WNOHANG option to check if the job has finished or not. 'man 2 wait' for more information on using waitpid(). If this isn't what you're looking for, please give me more information on what exactly you are trying to do and I'll try to help you out. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 232 bytes Desc: not available Url : http://www.scyld.com/pipermail/beowulf/attachments/20010801/2d80e29e/attachment.bin
- Previous message: how to tell when jobs are finished
- Next message: how to tell when jobs are finished
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Beowulf mailing list
