10 More Discussions You Might Find Interesting

1. Solaris Child killing parent process and how to set up SMF Hello, A little background on what we are doing first. We are running several applications from a CLI, and not all of them are fully functional. They do on occasion core dump, not a problem. We are running a service that takes a screen scrape of those apps and displays them in a more user... (5 Replies) Discussion started by: Bryan.Eidson 5 Replies

2. Shell Programming and Scripting forking a child process and kill its parent to show that child process has init() as its parent 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

3. Programming Parent forking My question is, how do you fork only the parent processes in unix? For example how would I use the fork function to fork the parent process more than once and leave the children processes alone. This way I do not have children of children. The way I have it set up now it the parent process forks 3... (7 Replies) Discussion started by: TWhitt24 7 Replies

4. Shell Programming and Scripting Finding the age of a unix process, killing old processes, killing zombie processes I had issues with processes locking up. This script checks for processes and kills them if they are older than a certain time. Its uses some functions you'll need to define or remove, like slog() which I use for logging, and is_running() which checks if this script is already running so you can... (0 Replies) Discussion started by: sukerman 0 Replies

5. Shell Programming and Scripting Forking a bunch of processes and filling up the process table I have a bash script that has been used for months here at work for doing an SSH into other machines both Linux and Solaris and running a script on the remote machine. Recently I have started to noticed that things are being left being on the maching doing the SSH. For example.... tivoli ... (1 Reply) Discussion started by: LRoberts 1 Replies

6. UNIX for Advanced & Expert Users Child Killing Parent Hi all, I am writing a script which calls other third party scripts that perform numerous actions. I have no control over these scripts. My problem is, one of these scripts seems to execute and do what it is meant to do, but my calling / parent script always exits at that point. I need to... (4 Replies) Discussion started by: mark007 4 Replies

7. UNIX for Advanced & Expert Users Forking a new process without parent dependance hi, I want my program to fork a new process and then I want to kill the parent process. The parent program before dying will issue a SIGTERM to all its childs. Which eventually kills all Children. I cant handle the SIGTERM at the child level.:( What I was thinking of was the Parent... (3 Replies) Discussion started by: tyler_durden 3 Replies

8. UNIX for Advanced & Expert Users Monitoring Processes - Killing hung processes Is there a way to monitor certain processes and if they hang too long to kill them, but certain scripts which are expected to take a long time to let them go? Thank you Richard (4 Replies) Discussion started by: ukndoit 4 Replies

9. Shell Programming and Scripting Killing parent shells from subshells (KSH) Hi all, I have a shell script which calls other shell scripts, depending on the input. Within a.sh, I have a command which calls b.sh (ie. ksh b.sh) Normally, we use the exit function to terminate a shell. However, if I choose to call exit from b.sh, I will return to the parent shell who... (4 Replies) Discussion started by: rockysfr 4 Replies