[tor-dev] Tor Control Protocol: multiple commands in a single line possible?
meejah
meejah at meejah.ca
Mon Jan 11 01:11:46 UTC 2016
Patrick Schleizer <patrick-mailinglists at whonix.org> writes:
> Does Tor's control protocol actually support something like ; ?
I'm not sure if this helps for your use-case, but my "carml"
command-line tool can read commands from a pipe and execute them all. A
simple example:
echo "GETINFO process/user" > foo
echo "GETINFO process/pid" >> foo
cat foo | carml cmd -
So, this will produce stdout like this:
process/user=debian-tor
process/pid=1234
(Of course, you can make the above shorter/different in various ways,
and GETINFO accepts multiple keys already, but "illstrative purposes"
etc...)
--
meejah
More information about the tor-dev
mailing list