10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi everyone
i am very new to linux , working on bash shell.
I am trying to solve the given problem
1. Create a process and then create children using fork
2. Check the Status of the application for successful running.
3. Kill all the process(threads) except parent and first child... (2 Replies)
Discussion started by: vizz_k
2 Replies
2. Homework & Coursework Questions
1. The problem statement, all variables and given/known data:
I need to make an program that in a loop creates one parent and five children with fork(). The problem i'm trying to solve is how to delete the parent and child of the childīs process.
2. Relevant commands, code, scripts,... (0 Replies)
Discussion started by: WhiteFace
0 Replies
3. HP-UX
Hi,
Is there a way or a command to remove defunct processes on my hp-ux server?
Its shows a lot of them and i think its affecting the performance of the server.
who -d |wc -l
580
who -d shows
aktarafr pts/109 Oct 1 15:05
passji pts/119 Feb 25 14:20
forthm ... (6 Replies)
Discussion started by: jinslick25
6 Replies
4. Shell Programming and Scripting
Hi ,
I want to find out the child process name given its PID. I have used the ps command but it displays the parent process name against child PID.
Is there any way to find out name of child program executing under any parent program? (1 Reply)
Discussion started by: sneha_heda
1 Replies
5. Shell Programming and Scripting
How to create a child shell ? (1 Reply)
Discussion started by: anupdas
1 Replies
6. Shell Programming and Scripting
I am calling another script from my main script and making it run in the background,based upon the value of the input provided by the user I want to kill the child process ,I have written this code
timer.ksh &
PID=$$
print "\n Do you wish to continue .. (Y/N) : \c "
read kill_proc
if ]... (4 Replies)
Discussion started by: mervin2006
4 Replies
7. Programming
Hi all, i need to execute a program from within my c++ code. This is no problem. system(), fork(), execxy(). But now i want to able to execute the program as another user as the parent process.
The whole thing is on solaris. I should be possible for both, users with no shell and no password... (1 Reply)
Discussion started by: heck
1 Replies
8. Programming
Hi,
When i m trying to run below code,its entering into wait stage.
output: In parent
pid=2134 // some random value assigned to child process
parent waiting.....
and then it keeps on waiting for child to get terminate
Y this child is not getting... (5 Replies)
Discussion started by: Crab
5 Replies
9. Shell Programming and Scripting
Hello.
I have a global function name func1() that I am sourcing in from script A. I call the function from script B. Is there a way to find out which script called func1() dynamically so that the func1() can report it in the event there are errors?
Thanks (2 Replies)
Discussion started by: yoi2hot4ya
2 Replies
10. UNIX for Dummies Questions & Answers
hello every one,
i want to know more about creation of child process.
UNDER WHAT CIRCUMSTANCES child process is created?
WHAT ARE THE PREREQUISITES for a child process to be created?
let us say we have a prog.c, prog.obj(compiled.c),.a\.out files.
is any child PROCESS CREATED... (12 Replies)
Discussion started by: compbug
12 Replies