I took a quick glance at it, and the only thing I see wrong is the control port in your script is set to 9100.<br>The default control port is 9051.<br>Minor Detail.&nbsp; <br>Nice tool.&nbsp; <br>Thanks.<br><br><br><br><div><span class="gmail_quote">
On 10/4/07, <b class="gmail_sendername">Stefan Behte</b> &lt;<a href="mailto:Stefan.Behte@gmx.net">Stefan.Behte@gmx.net</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
-----BEGIN PGP SIGNED MESSAGE-----<br>Hash: SHA1<br><br>Hi!<br><br>I&#39;d like to present a tool which was said to be wanted by some people<br>running servers (<a href="http://tor.eff.org/volunteer.html.en">http://tor.eff.org/volunteer.html.en
</a> -&gt; nr. 3)&nbsp;&nbsp;- so I<br>wrote it.<br><br>tor-ctrl is a general-purpose commandline tool for executing commands on<br>a tor server via the controlport. I regard it as kind of &quot;interface&quot;<br>between the tor controller interface and the commandline.
<br><br>It&#39;s written in BASH and uses just telnet/xxd (the last one only when<br>using control_auth_cookie), so there is no need for a bulky java/python<br>installation.<br><br>Here is an example of what you can do with it:
<br>For setting the bandwidth for specific times of the day, I suggest<br>calling tor-ctrl via cron, e.g.:<br><br>0 22 * * * /path/to/tor-ctrl -c &quot;SETCONF bandwidthrate=1mb&quot;<br>0 7 * * *&nbsp;&nbsp;/path/to/tor-ctrl -c &quot;SETCONF bandwidthrate=100kb&quot;
<br><br>This would set the bandwidth to 100kb at 07:00 and to 1mb at 22:00.<br>You can use notations like 1mb, 1kb or the number of bytes.<br><br>In order to do other &quot;magic&quot;, you should read<br><a href="http://tor.eff.org/svn/trunk/doc/spec/control-spec.txt">
http://tor.eff.org/svn/trunk/doc/spec/control-spec.txt</a><br><br>I also created a download-page for the tool: <a href="http://ge.mine.nu/tor-ctrl.html">http://ge.mine.nu/tor-ctrl.html</a><br>Direct link: <a href="http://ge.mine.nu/code/tor-ctrl.sh">
http://ge.mine.nu/code/tor-ctrl.sh</a><br>If it&#39;s down, please try again later (I had some problems with my ISP<br>recently).<br><br>Please send me some feedback, ideas and (most important!) bug reports!<br><br><br>Best regards,
<br><br>Stefan Behte<br><br>-----BEGIN PGP SIGNATURE-----<br>Version: GnuPG v1.4.7 (GNU/Linux)<br>Comment: Using GnuPG with Mozilla - <a href="http://enigmail.mozdev.org">http://enigmail.mozdev.org</a><br><br>iD8DBQFHBYjCgs5mTaoGZecRAkrMAJ9b5oXtzG6eaQbQLHaUzc70yjksjgCghy6Q
<br>+Gd6RgbO5EE+4TM073cCbEQ=<br>=Simt<br>-----END PGP SIGNATURE-----<br><br></blockquote></div><br>