Article View: news.software.readers
Article #257455Re: slrn and remote editor via ssh
From: Lewis
Date: Sun, 27 Apr 2014 23:10
Date: Sun, 27 Apr 2014 23:10
44 lines
2982 bytes
2982 bytes
In message <slrnllkjnr.pp6.mr@irc.sandman.net>
Sandman <mr@sandman.net> wrote:
> In article <slrnlljq4i.la8.g.kreme@amelia.local>, Lewis <g.kreme@gmail.com.dontsendmecopies> wrote:
>> 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
> Hmmm, ok, that seems to actually wait for the file to be saved and
> closed... But what does "+%d" do? It only opens an empty file named "+d%"
> in bbedit?
IIRC it puts the cursor on the line following the headers, but it's been
awhile since I used BBEdit for USENET.
--
...but the senator, while insisting he was not intoxicated, could not
explain his nudity.
Technical Details
Message-ID:
<slrnllr3im.2ii.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!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nac.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!rt.uk.eu.org!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mailReferences:
<slrnlli521.m49.mr@irc.sandman.net> <slrnlljq4i.la8.g.kreme@amelia.local> <slrnllkjnr.pp6.mr@irc.sandman.net>Show Full Headers
Complete Article Headers
Message-ID: <slrnllr3im.2ii.g.kreme@amelia.local> Subject: Re: slrn and remote editor via ssh Date: Sun, 27 Apr 2014 23:10:15 +0000 From: Lewis <g.kreme@gmail.com.dontsendmecopies> References: <slrnlli521.m49.mr@irc.sandman.net> <slrnlljq4i.la8.g.kreme@amelia.local> <slrnllkjnr.pp6.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.dca.giganews.com!nntp.giganews.com!newspeer1.nac.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!rt.uk.eu.org!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail Newsgroups: news.software.readers Organization: Miskatonic U Lines: 44 Injection-Date: Sun, 27 Apr 2014 23:10:15 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="67a6ffcad0084cff2eaf00478b4e9e19"; logging-data="23575"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1++xYn2znNxKUsvieT+z164" 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:H9io/y4KZ7cFFax6m4667bVwgQs= Mail-Copies-To: nobody