07-13-2009
echo the PID value to a file descriptor... e.g. >&7...
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Is there any build in command in unix to kill all the child process for a given process ID ? If any one has script or command, please let me know.
Thanks
Sanjay (4 Replies)
Discussion started by: sanjay92
4 Replies
2. Programming
Hi,
Can anybody solve this query?
A parent process forks 2 child processes. How does the child process know it's PID without the parent process sending it.
Apart from the "ps-ef" option, what other options are there if any? (2 Replies)
Discussion started by: skannan
2 Replies
3. Programming
question: for the below program
i just printed the value for pid, child pid and parent pid
why does it give me 6 values? i assume ppid is 28086
but can't figure out why there are 5 values printed instead of just two!
can someone comment on that!
#include<stdio.h>
#define DIM 8
int... (3 Replies)
Discussion started by: a25khan
3 Replies
4. Shell Programming and Scripting
This is not the same as a few of the other posted items dealing with sub-process pids (that I saw anyway).
If zot contains:
echo "main mypid: $$ - lastpid: $!"
(
echo "block mypid: $$ - lastpid: $! - ppid: $PPID"
ps -ef > xxx
sleep 5
echo "block mypid: $$ - lastpid: $! - ppid:... (6 Replies)
Discussion started by: MichLab
6 Replies
5. Shell Programming and Scripting
I am using ZSH shell in Linux.
I am calling a child program in background mode parallely (say 2-3 threads). I have problem in handling the temporary files of these child programs since the temp file names are unique for all the child process.
To distinguish i want to use the pid in the temp... (3 Replies)
Discussion started by: dhams
3 Replies
6. Shell Programming and Scripting
I have a process that copies files from a main storage server to main other servers. We are attempting to speed up the processing and have thought that the best method would be to use concurrent file copying.
What was suggested is that we change from using a simple RCP and waiting for it to... (3 Replies)
Discussion started by: dorrellg
3 Replies
7. Programming
Hi all,
I'm new in programming, but want to start writing a simple GUI for linux console application,say, wget.(for educational purpose :) ).
The question is:
how to start child process from C++ code and then start capture messages from its stdout?
Thanks in advance. (2 Replies)
Discussion started by: vahagn_iv
2 Replies
8. Red Hat
Hi ,
My problem is that I am not able to list all process id of any process.
If you see pstree command it shows many process id under https. But if I run ps command its not listing all the process id for httpd.
It is just listing the PPID and immediate child process id only. I... (4 Replies)
Discussion started by: pratapsingh
4 Replies
9. Shell Programming and Scripting
#!/usr/local/bin/bash
set -vx
/prod/HotelierLinks/palaceLink/bin/PalacefilesWait /prod/HotelierLinks/palaceLink/bin/prodEnvSetup 03212013 &
if
then
echo "fatal error: Palace/HardRock failed!!!!" 1>&2
echo "Palace Failed" | mail -s "Link Failed at Palace/HardRock" -c... (1 Reply)
Discussion started by: aroragaurav.84
1 Replies
10. Shell Programming and Scripting
HI
Am trying to get child process id for a PID using ksh..
ps -ef | grep xntpd
root 3342472 2228308 0 12:17:40 - 0:00 /usr/sbin/xntpd
root 4522024 6488316 0 12:18:56 pts/0 0:00 grep xntpd
root 6291614 3342472 0 12:17:40 - 0:00 /usr/sbin/xntpd
Here now i... (1 Reply)
Discussion started by: Priya Amaresh
1 Replies
LEARN ABOUT DEBIAN
evtest-capture
EVTEST-CAPTURE(1) EVTEST-CAPTURE(1)
NAME
evtest-capture - Input device event capture program
SYNOPSIS
evtest-capture "/dev/input/eventX" [evtest-capture.xml]
DESCRIPTION
evtest-capture captures the information and events from the input device specified on the command line and writes it to the xml file given.
If no filename is given for the output file, evtest-capture.xml is chosen as default.
evtest-capture needs to be able to read from the device; in most cases this means it must be run as root.
Together with with evtest-create-device.xsl, a simple uinput-based software input device can be created that replays the events as if the
same input was performed on the physical device. This can be useful to replicate bugs with input devices in upper layers of the stack.
To convert evtest-capture.xml into such a uinput device, run:
xsltproc evtest-create-device.xls evtest-capture.xml > mydevice.c
gcc -o mydevice mydevice.c
./mydevice
DIAGNOSTICS
If evtest-capture does not see any events even though the device is being used, the device may be grabbed by a process (EVIOCGRAB). This is
usually the case when debugging a synaptics device from within X. VT switching to a TTY or shutting down the X server terminates this grab
and synaptics devices can be debugged.
SEE ALSO
evtest(1)
AUTHOR
evtest-capture was written by Peter Hutterer <peter.hutterer@redhat.com[1]>.
NOTES
1. peter.hutterer@redhat.com
mailto:peter.hutterer@redhat.com
05/21/2012 EVTEST-CAPTURE(1)