[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: PHP coder needs Tor details
Mr. Blue writes:
> Problem 1:
>
> I start Tor by simply typing "tor" in command line(FreeBSD 6.x). When I tried to stop it by SIGNALS form Tor man pages none of them worked.
> Obviously SIGNALS are not ment to be passed to Tor through command line(This MUST be in a man but it ISN'T!), while options with theirs values ARE ok if passed to Tor through command line.
>
> So let's firstly solve this - How to start and stop Tor through command line?
> After that I will pas question 2.
"SIGNALS" standardly refers to the Unix signals mechanism; see the man
page for signal(2). The command-line program to send a signal to a process
is called kill; see the man page for kill(1):
NAME
kill - send a signal to a process
By using the kill program on the command line, you can generate the signals
described in the SIGNALS section of the Tor man pages.
It's probably also possible to generate signals from within a PHP script
using an appropriate library function. It looks like the function to
use would be posix_kill().
http://phpbuilder.com/manual/en/function.posix-kill.php
The effects of posix_kill will be equivalent to the effects of using
kill from the command line.
--
Seth Schoen
Staff Technologist schoen@xxxxxxx
Electronic Frontier Foundation http://www.eff.org/
454 Shotwell Street, San Francisco, CA 94110 1 415 436 9333 x107