10-20-2006
Another way is to run process from a programm (that will be a parent) and wait when the process is finished (use fork/exec/waitpid functions).
I do not know whether waitpid() can be used by process that is not a parent for process with given pid.
8 More Discussions You Might Find Interesting
1. News, Links, Events and Announcements
Mods: Delete this if you think that this is not appropriate.
I found this rather amusing. If you go to www.unix.net now you will see the OpenGroup selling license plates that read "Live Free or Die/Unix/Unix is a trademark of the OpenGroup"
(http://www.unix.net/unix_plates.html)
I just... (12 Replies)
Discussion started by: auswipe
12 Replies
2. UNIX for Dummies Questions & Answers
I am using SunOS 5.7
I have installed Python 2.5 via make install
Without going into details, I'd like to uninstall it and replace it with an earlier version. Maybe as far back as 2.2.3. Unfortuantely, make uninstall gives me Don't know how to make target 'uninstall'. This is thematically... (2 Replies)
Discussion started by: Dbecker
2 Replies
3. UNIX for Dummies Questions & Answers
how to decrease priority of a particular process in time of process creation...
and also how to decrease priority of a particular process after process creation..
can any one please help me out... (2 Replies)
Discussion started by: Ramkum
2 Replies
4. UNIX for Advanced & Expert Users
Hi All,
I am running the following accounting on one of my executable,
$ accton /home/myexe-acct
$ ./myexe
$ accton
When I check the process timings I get the below result,
Shell process time: 300ms
myexe time: 100ms
I want to know on why the shell(sh) process is taking so much time... (1 Reply)
Discussion started by: santoshbr4
1 Replies
5. Linux
Process start time is not showing the correct time:
I had started a process on Jun 17th at 23:30:00.
Next day morning when I run the command "ps -ef | grep mq", the process is showing the start date of Jun 17th but the start time is 00:16:41
Day/Date is setup correctly on the server.
It... (2 Replies)
Discussion started by: hemangjani
2 Replies
6. Shell Programming and Scripting
Hello All,
I have a problem calculating the time difference between start and end timings...!
the timings are given by 24hr format..
Start Date : 08/05/10 12:55
End Date : 08/09/10 06:50
above values are in mm/dd/yy hh:mm format.
Now the thing is, 7th(08/07/10) and... (16 Replies)
Discussion started by: smarty86
16 Replies
7. Shell Programming and Scripting
Hi,
I will ftp aroung 80 files after connecting to an FTP Server. But after 2 minutes of connection, it is timed out and connection is dying. Server had a 2 minute connection timeout if connection is idle. But my question, Isn't tranfering files not considered as an activity. Is the connection... (7 Replies)
Discussion started by: vasuarjula
7 Replies
8. AIX
periodically my oracle 11.2.0.1 listener process 'tnslsnr' seems to crash and disappear ( I am using an AIX 6.1 unix platform ). When this happens I am able to restart my listener ok. However when this happens there is is no stop recorded in my listener log (as there normally would be - hence why I... (1 Reply)
Discussion started by: jimthompson
1 Replies
LEARN ABOUT DEBIAN
explain_waitpid_or_die
explain_waitpid_or_die(3) Library Functions Manual explain_waitpid_or_die(3)
NAME
explain_waitpid_or_die - wait for process to change state and report errors
SYNOPSIS
#include <libexplain/waitpid.h>
int pid = explain_waitpid_or_die(int pid, int *status, int options);
DESCRIPTION
The explain_waitpid_or_die function is used to call the waitpid(2) system call. On failure an explanation will be printed to stderr,
obtained from explain_waitpid(3), and then the process terminates by calling exit(EXIT_FAILURE).
This function is intended to be used in a fashion similar to the following example:
explain_waitpid_or_die(pid, status, options);
pid The pid, exactly as to be passed to the waitpid(2) system call.
status The status, exactly as to be passed to the waitpid(2) system call.
options The options, exactly as to be passed to the waitpid(2) system call.
Returns:
This function only returns on success. On failure, prints an explanation and exits.
SEE ALSO
waitpid(2)
wait for process to change state
explain_waitpid(3)
explain waitpid(2) errors
exit(2) terminate the calling process
COPYRIGHT
libexplain version 0.52
Copyright (C) 2008 Peter Miller
explain_waitpid_or_die(3)