How to kill a child script if it takes more than 10 minutes?
Hi all,
I have a query on killing a child process, if it takes more than 10 minutes
myparent.sh has the following
The initiateServer is a child process and this might take 20 or more minutes to return. I want to kill this process, if it is taking more than 10 minutes.
Please advice on what to do? Thanks all in advance
-Guru
Last edited by Franklin52; 06-05-2013 at 05:37 AM..
Reason: Please use code tags
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)
Hello all,
I have gone through the search and looked at posting about idle users and killing processes. Here is my question I would like to kill an idle user ( which I can do) but how can I asure that all of his process is also killed whit out tracing his inital start PID. I have tried this on a... (4 Replies)
Hi Friends,
I need to write a script to kill some processes running for more than 10 minutes. Can I get some pointers on that. Thanks for ur help in Advance.
Thanks&Regards,
Amit (1 Reply)
Hi Friends,
I need to write a script to kill some processes running for more than 10 minutes. Can I get some pointers on that. Thanks for ur help in Advance.
Thanks&Regards,
Amit (1 Reply)
hi
OS: Sun Solaris
I have a scenario that when someone presses ctrl-c while executing a shell script, it should not just exit. it should kill all the child processes started by the running shell script only.
I am executing many other scripts parallely which in turn fork off more... (2 Replies)
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)
Hi guys i have a problem with a script... this script creates differents GUI with YAD... well i want that when i press the "Cancel" button on this graphical interface all the child process and even the same script should be killed
#!/bin/bash
function gui_start {
local choice=""
... (4 Replies)
Hi,
I have parent script which is invoking multiple child scripts. I would want to kill all the child processes before the parent
process exit.
> cat ./parent
#!/bin/ksh
while
do
. ./child arg1 &
if ; then
break
fi
done
Is there a way to get the process group id for all the child... (3 Replies)
hi guys
i had written a shell script Display Information of all the File Systems
i want to find the pid and kill the process after few minutes.how can i obtain the pid and kill it???
sample.sh
df -a >> /tmp/size.log
and my cron to execute every minute every hour every day
* *... (5 Replies)
Hey All,
ldapsearch takes minutes when using FQDN vs IP. What could be some of the reasons for that?
Cheers,
DH (13 Replies)
Discussion started by: Devyn
13 Replies
LEARN ABOUT HPUX
create_child
create child(1m) create child(1m)NAME
create child - Creates a child pointer at the master replica of the parent directory
SYNOPSIS
cdscp create child child-name clearinghouse clearinghouse-name
ARGUMENTS
The full name of the child pointer. The full name of a clearinghouse that contains a replica of the child directory.
DESCRIPTION
The create child command creates a child pointer at the master replica of the parent directory. When CDS looks up a name in the namespace,
it uses child pointers to locate directory replicas. Use the set cdscp preferred clearinghouse command before issuing this command to
ensure that the request is directed to the master replica.
Privilege Required
You must have insert permission to the parent directory.
NOTES
Use the create child command only to re-create a child pointer that is accidentally deleted. This command is designed only for trou-
bleshooting.
This command will fail if the associated directory does not exist. If the associated directory exists, this command will return success-
fully.
This command is replaced at Revision 1.1 by the dcecp command and may not be provided in future releases of DCE.
EXAMPLE
The following command creates the child pointer in the parent directory /.:/subsys. It uses the replica located at the /.:/subsys/NY_CH
clearinghouse to fill in its replica set.
cdscp> create child /.:/subsys clearinghouse /.:/subsys/NY_CH
RELATED INFORMATION
Commands: delete child(1m), list child(1m), show child(1m)
create child(1m)