Opened 4 years ago

Closed 4 years 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: Archived/Stem Version:
Severity: Normal Keywords:
Cc: whonix-devel@… Actual Points:
Parent ID: Points:
Reviewer: Sponsor:


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


echo signal newnym | tor-cli

250 OK

Child Tickets

Attachments (1)

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

Download all attachments as: .zip

Change History (4)

comment:1 Changed 4 years ago by atagar

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

comment:2 Changed 4 years ago by adrelanos

Great! Glad you like it. :)

Changed 4 years ago by tparks5

Attachment: cli-option.patch added

Suppresses tor-prompt welcome banners with --cli option

comment:3 Changed 4 years 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...

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.