10-26-2006
is the actual parent id is 18887 & not 1?
10 More Discussions You Might Find Interesting
1. 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
2. UNIX for Dummies Questions & Answers
I can kill running processes on my linux red hat system using ctrl-c but cannot do it from command line of another terminal using kill -2 pid. Although I can kill them from command line using kill -9 pid and other signals. I would like to do it using the kill -2 pid.
Thanks for your suggestions (6 Replies)
Discussion started by: bbhayana
6 Replies
3. Shell Programming and Scripting
Hello,
I need to create a process that will kill a specific process if it's running. Let's just say the process is called win, actually called something else. It could be running multiple times on the machine and I would want to kill them all. Below is the code I have written so far, and it... (6 Replies)
Discussion started by: benefactr
6 Replies
4. Shell Programming and Scripting
Hi Friends,
I am new to this forum as well as new to shell scripting.
I have a problem here and i need someone to solve this.
Let us consider there are two processes(abc & def).There is a script which kills these two processes(i.e killtheprocess abc). Here abc is the argument .
There is a... (1 Reply)
Discussion started by: Prince89
1 Replies
5. UNIX for Dummies Questions & Answers
Hi,
First, I am running a scipt.While the script is running I realize that I dont want the script to be run so I am killing the script externally.Before the process gets terminated or killed it should delete all the temporary files created by the script.How to do this?Can anyone help me?
... (3 Replies)
Discussion started by: arthi
3 Replies
6. Shell Programming and Scripting
Hi friends,
i m in big trouble....
i have one script which connects two server ...like below..
script1.sh
-------------------------------------
bash test.sh &
eval x=$@
export x=`echo $x`
#echo $x
#
ssh user@8.2.5.6 bash /mbbv/location/script.sh $x|sed '/Binary file/d'... (1 Reply)
Discussion started by: Shahul
1 Replies
7. Shell Programming and Scripting
i am using script to connect remotly to server and run some commands , one of these commands is to kill some process but tried different ways with no hope
sshpass -p 'pass' ssh -o StrictHostKeyChecking=no server kill -9 `pgrep procs`
getting error message "kill: bad argument count"
... (2 Replies)
Discussion started by: mogabr
2 Replies
8. Shell Programming and Scripting
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
9. Shell Programming and Scripting
Folks ,
Trying to create a script / command that kills an application process , but on the ones that are from the current date backwards. So far I have everything working minus the "date" part. Can you help me ?
current command :
kill -9 `ps -aef | grep app_name | grep -v grep | awk... (13 Replies)
Discussion started by: iMark
13 Replies
10. Shell Programming and Scripting
Hi ,
I have a list of application process id's.
Is there a way to kill all the process listed below using the script, except the once which are starting with " Genesis "
adm 1522 ABC_Process.tra
adm 1939 Genesis_Process.tra
adm 2729 Genesis_Archive.tra
adm 3259 xyz_Process.tra (5 Replies)
Discussion started by: murali1687
5 Replies
LEARN ABOUT CENTOS
xreparentwindow
XReparentWindow(3) XLIB FUNCTIONS XReparentWindow(3)
NAME
XReparentWindow - reparent windows
SYNTAX
int XReparentWindow(Display *display, Window w, Window parent, int x, int y);
ARGUMENTS
display Specifies the connection to the X server.
parent Specifies the parent window.
w Specifies the window.
x
y Specify the x and y coordinatesof the position in the new parent window.
DESCRIPTION
If the specified window is mapped, XReparentWindow automatically performs an UnmapWindow request on it, removes it from its current posi-
tion in the hierarchy, and inserts it as the child of the specified parent. The window is placed in the stacking order on top with respect
to sibling windows.
After reparenting the specified window, XReparentWindow causes the X server to generate a ReparentNotify event. The override_redirect mem-
ber returned in this event is set to the window's corresponding attribute. Window manager clients usually should ignore this window if
this member is set to True. Finally, if the specified window was originally mapped, the X server automatically performs a MapWindow
request on it.
The X server performs normal exposure processing on formerly obscured windows. The X server might not generate Expose events for regions
from the initial UnmapWindow request that are immediately obscured by the final MapWindow request. A BadMatch error results if:
o The new parent window is not on the same screen as the old parent window.
o The new parent window is the specified window or an inferior of the specified window.
o The new parent is InputOnly, and the window is not.
o The specified window has a ParentRelative background, and the new parent window is not the same depth as the specified window.
XReparentWindow can generate BadMatch and BadWindow errors.
DIAGNOSTICS
BadWindow A value for a Window argument does not name a defined Window.
SEE ALSO
XChangeSaveSet(3)
Xlib - C Language X Interface
X Version 11 libX11 1.6.0 XReparentWindow(3)