Article View: news.software.readers
Article #257403Re: slrn and remote editor via ssh
From: Lewis
Date: Fri, 25 Apr 2014 04:46
Date: Fri, 25 Apr 2014 04:46
31 lines
2425 bytes
2425 bytes
In message <slrnlli521.m49.mr@irc.sandman.net>
Sandman <mr@sandman.net> wrote:
> 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.
bbedit -w --resume +%d
--
Happy Jack wasn't tall, but he was a man
Technical Details
Message-ID:
<slrnlljq4i.la8.g.kreme@amelia.local>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!border1.nntp.dca3.giganews.com!backlog3.nntp.dca3.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mailReferences:
<slrnlli521.m49.mr@irc.sandman.net>Show Full Headers
Complete Article Headers
Message-ID: <slrnlljq4i.la8.g.kreme@amelia.local> Subject: Re: slrn and remote editor via ssh Date: Fri, 25 Apr 2014 04:46:10 +0000 From: Lewis <g.kreme@gmail.com.dontsendmecopies> References: <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!border1.nntp.dca3.giganews.com!backlog3.nntp.dca3.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail Newsgroups: news.software.readers Organization: Miskatonic U Lines: 31 Injection-Date: Fri, 25 Apr 2014 04:46:10 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="67a6ffcad0084cff2eaf00478b4e9e19"; logging-data="28910"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19VNIW47AFmry6yIw1tKrIy" User-Agent: slrn/1.0.1 (Darwin) X-No-Archive: Yes X-Excuse: Been playing lots of WoW X-Face: )^b5"R:T7U>9~:PEn3YkzMfW*[b1qKeU.fP9C8~8HpU9}lA&6`bH1z Cancel-Lock: sha1:QLhMZfotRGQG7ywYwLhz0i0SZOI= Mail-Copies-To: nobody X-Original-Bytes: 2112