🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #257389

slrn and remote editor via ssh

#257389
From: Sandman
Date: Thu, 24 Apr 2014 13:37
29 lines
1786 bytes
I use slrnon my Linux box, and connect to it from my Mac, and I want to use 
a Mac editor to edit posts, so I wrote this script:

---------------
#!/bin/bash
IFS=' '
read -a array <<< "${SSH_CONNECTION}";

remotehost=${array[0]}
myhost=${array[2]}
ssh sandman@${remotehost} /usr/local/bin/bbedit sftp://sandman@${myhost}/`pwd`/$1
--------------

That invokes bbedit on my Mac for editing posts from the currently 
connected Mac. I then set my editor command to:

	set editor_command "~/bin/quote.php; ~/bin/bbedit"

And it works! The "quote.php" is a script that pre-processes my replies and 
formats some stuff, and then it invokes the above script.

The only problem I'm having is that ssh doesn't "halt" the operation, but 
return control back to slrn as soon as it has established and slrn asks me 
if I want to post the message.

Any ideas?

-- 
Sandman[.net]
Technical Details
Message-ID: <slrnlli521.m49.mr@irc.sandman.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border2.nntp.dca3.giganews.com!backlog4.nntp.dca3.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nac.net!feeder.erje.net!eu.feeder.erje.net!news.internetdienste.de!news.tu-darmstadt.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <slrnlli521.m49.mr@irc.sandman.net>
Subject: slrn and remote editor via ssh
Date: Thu, 24 Apr 2014 13:37:36 +0000
From: Sandman <mr@sandman.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border2.nntp.dca3.giganews.com!backlog4.nntp.dca3.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nac.net!feeder.erje.net!eu.feeder.erje.net!news.internetdienste.de!news.tu-darmstadt.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
Newsgroups: news.software.readers
Lines: 29
X-Trace: individual.net Bd1eib44onPAkeIAuH2d5gCqUZD0Ef5hD3ZBu7MRKYXRT8vCU=
Cancel-Lock: sha1:adQYRRjHKiXA13WxvGIlUdotqkQ=
User-Agent: slrn/pre1.0.0-18 (Linux)
X-Original-Bytes: 1464