No subject


Tue Mar 1 03:45:00 UTC 2011


> > Obviously, it is up to Tor, because it is sending
some
> > signal to reset 60sec CURL's rule for
termination(so
> > PHP's CURL can't close it!!).
> 
> it is up to Tor? Tor will timeout a failed connect
attempt at 120 or
> 180 seconds(?), but if you've got a connection, and
the server doesn't
> close it, and you never time it out, sure, it could
hang open for
> hours.
> 
> you need to fix the curl part to timeout transfers
as well as
>  connect/dns.

I added another CURL option from above:
CURLOPT_TIMEOUT (integer) - The maximum number of
seconds to allow cURL functions to execute


> best regards,


Anyway..., last question which is bash shell related.
Second script that each 10 mins check first one, is
killing first one by it's PID(if hangs more than 30
min) and the restarting it with command:

php -f chk_tor.php > /dev/null 2>&1 &

Now, I like PHP coder am not too skilled with FreeBSD
6.2' bash shell, so here is how would I like that
command to be altered.

I want output that currently goes in /dev/null, be
saved in a variable ($OUTPUT), and then piped to mail
function where body=$OUTPUT (I will set 'subject' and
'to' by mayself).
Effect should be the same one when you instal crontab
with set MAILTO=...
I don't know bash shell syntax to do it..., thanks in advance.


      ____________________________________________________________________________________
Luggage? GPS? Comic books? 
Check out fitting gifts for grads at Yahoo! Search
http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=bz



More information about the tor-talk mailing list