🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #257413

Re: slrn and remote editor via ssh

#257413
From: Sandman
Date: Fri, 25 Apr 2014 12:00
39 lines
2193 bytes
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?



-- 
Sandman[.net]
Technical Details
Message-ID: <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!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin2!goblin.stu.neva.ru!news.internetdienste.de!news.tu-darmstadt.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <slrnlli521.m49.mr@irc.sandman.net> <slrnlljq4i.la8.g.kreme@amelia.local>

Show Full Headers
Complete Article Headers
Message-ID: <slrnllkjnr.pp6.mr@irc.sandman.net>
Subject: Re: slrn and remote editor via ssh
Date: Fri, 25 Apr 2014 12:00:23 +0000
From: Sandman <mr@sandman.net>
References: <slrnlli521.m49.mr@irc.sandman.net> <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.dca.giganews.com!nntp.giganews.com!goblin2!goblin.stu.neva.ru!news.internetdienste.de!news.tu-darmstadt.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
Newsgroups: news.software.readers
Lines: 39
X-Trace: individual.net c+mCiDY0UKYH4JCr9ZkqugpxWG3c1NGaozrx4DW/o0jZVC+gE=
Cancel-Lock: sha1:Sai1CxLMtstFt6bJsuPW6rYXe1g=
User-Agent: slrn/pre1.0.0-18 (Linux)