469,352 Members | 2,107 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,352 developers. It's quick & easy.

Restart process with SIGHUP

Hello,

I'm trying to restart a process with the os.kill command. My Problem is
that if the command gets executed, my python script stops working. I
want to SIGHUP a process with the following command: os.kill(pid,
signal.SIGHUP).

Can anyone give me a hint in solving this?

Best regards,

Lukas

Jan 11 '06 #1
2 3666
Lu**********@gmail.com writes:
I'm trying to restart a process with the os.kill command. My Problem is
that if the command gets executed, my python script stops working. I
want to SIGHUP a process with the following command: os.kill(pid,
signal.SIGHUP).
That looks right.
Can anyone give me a hint in solving this?


Not without knowing what the problem really is. Show us code. Show us
a traceback (best) or otherwise provide details about what "stops
working" means.

<mike
--
Mike Meyer <mw*@mired.org> http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
Jan 11 '06 #2
Got it working now. It was a silly character pid instead of an int..

int(pid) fixed it.

Thanks anyway!

regards, Lukas

Jan 13 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Maksim Kasimov | last post: by
18 posts views Thread by amdishigh | last post: by
3 posts views Thread by John A Grandy | last post: by
8 posts views Thread by kenneth fleckenstein nielsen | last post: by
3 posts views Thread by Ben Finney | last post: by
8 posts views Thread by =?Utf-8?B?TWlrZVo=?= | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.