06-05-2013
Dear pravin27,
You risk either killing an innocent process that happens to have been created later on with the same process id (especially if you are running as the super-user) but you will probably be generating mail. I would go with Skrynesaver's suggestion. Far safer. It might be worth investing a little time in listing the process details at the start and at the end to ensure you are definitely killing the same process.
Robin
Liverpool/Blackburn
UK
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. UNIX for Dummies Questions & Answers
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)
Discussion started by: larry
4 Replies
3. UNIX for Advanced & Expert Users
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)
Discussion started by: amitsayshii
1 Replies
4. Shell Programming and Scripting
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)
Discussion started by: amitsayshii
1 Replies
5. UNIX for Advanced & Expert Users
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)
Discussion started by: rakeshou
2 Replies
6. 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
7. Shell Programming and Scripting
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)
Discussion started by: maaaaarco
4 Replies
8. Shell Programming and Scripting
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)
Discussion started by: midhun19
3 Replies
9. Shell Programming and Scripting
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)
Discussion started by: azherkn3
5 Replies
10. AIX
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 SUSE
gtk2::box
Gtk2::Box(3) User Contributed Perl Documentation Gtk2::Box(3)
NAME
Gtk2::Box
HIERARCHY
Glib::Object
+----Glib::InitiallyUnowned
+----Gtk2::Object
+----Gtk2::Widget
+----Gtk2::Container
+----Gtk2::Box
INTERFACES
Glib::Object::_Unregistered::AtkImplementorIface
Gtk2::Buildable
Gtk2::Orientable
METHODS
$box->set_child_packing ($child, $expand, $fill, $padding, $pack_type)
o $child (Gtk2::Widget)
o $expand (boolean)
o $fill (boolean)
o $padding (integer)
o $pack_type (Gtk2::PackType)
boolean = $box->get_homogeneous
$box->set_homogeneous ($homogeneous)
o $homogeneous (boolean)
$box->pack_end ($child, $expand, $fill, $padding)
o $child (Gtk2::Widget)
o $expand (boolean)
o $fill (boolean)
o $padding (integer)
$box->pack_end_defaults ($widget)
o $widget (Gtk2::Widget)
$box->pack_start ($child, $expand, $fill, $padding)
o $child (Gtk2::Widget)
o $expand (boolean)
o $fill (boolean)
o $padding (integer)
$box->pack_start_defaults ($widget)
o $widget (Gtk2::Widget)
list = $box->query_child_packing ($child)
o $child (Gtk2::Widget)
$box->reorder_child ($child, $position)
o $child (Gtk2::Widget)
o $position (integer)
integer = $box->get_spacing
$box->set_spacing ($spacing)
o $spacing (integer)
PROPERTIES
'homogeneous' (boolean : readable / writable / private)
Whether the children should all be the same size
'spacing' (integer : readable / writable / private)
The amount of space between children
ENUMS AND FLAGS
enum Gtk2::PackType
o 'start' / 'GTK_PACK_START'
o 'end' / 'GTK_PACK_END'
SEE ALSO
Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container
COPYRIGHT
Copyright (C) 2003-2008 by the gtk2-perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice.
perl v5.12.1 2010-07-05 Gtk2::Box(3)