Taking a value from a file and then using it to execute a command

Inyeol Lee inyeol_lee at yahoo.com
Fri Aug 9 01:04:07 EDT 2002


import os

pid = int(file("foo.pid").read())
os.kill(pid, signal_to_send)

Inyeol...



More information about the Python-list mailing list