Opened 7 months ago

Closed 5 months ago

#21541 closed enhancement (implemented)

tor-prompt / tor-cli as a shell command line tool to talk to Tor's ControlPort

Reported by: adrelanos Owned by: atagar
Priority: Medium Milestone:
Component: Core Tor/Stem Version:
Severity: Normal Keywords:
Cc: whonix-devel@… Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

Would be great if python-stem's existing tor-prompt linux command line tool could be enhanced so it could replace tor-ctrl.

  • not show the help "Welcome to Stem's interpreter prompt. This...", perhaps with a --no-help or --cli parameter?
  • using it in a pipe
echo signal newnym | tor-prompt --cli

250 OK

Or.

echo signal newnym | tor-cli

250 OK

Child Tickets

Attachments (1)

cli-option.patch (3.4 KB) - added by tparks5 6 months ago.
Suppresses tor-prompt welcome banners with --cli option

Download all attachments as: .zip

Change History (4)

comment:1 Changed 7 months ago by atagar

Hi adrelanos, both great ideas! I'll try to get this out over the weekend.

comment:2 Changed 7 months ago by adrelanos

Great! Glad you like it. :)

Changed 6 months ago by tparks5

Attachment: cli-option.patch added

Suppresses tor-prompt welcome banners with --cli option

comment:3 Changed 5 months ago by atagar

Resolution: implemented
Status: newclosed

Sorry about the long delay. Frustratingly I didn't spot someone had made a patch for this and ended up doing it myself. Result was pretty similar - the tor-prompt command now supports a '--run' argument that either invokes a command or a file with a series of commands...

https://gitweb.torproject.org/stem.git/commit/?id=d14fc24

Thanks for the feature suggestion and the patch! Feel free to reopen if you need anything else.

Note: See TracTickets for help on using tickets.