On Jul 12, 2018, at 8:41, Rick Gordon <li...@rickgordon.com> wrote:The end result would be an executable that could be stored on the host system and run similar to the basic syntax for the command-line executable as used on the Mac, such as:
bbedit path-to-file
Does that even make any sense, in term of logistics?
export REMOTEHOST=`echo $SSH_CLIENT | cut -d ' ' -f 1`export HOSTIP=`echo $SSH_CONNECTION | cut -d ' ' -f 3`function bbedit {# bbedit won't open a remote file via sftp if it doesn't exist. So, if it's a new file# create it, call bbedit to open, and then kill it.FCREATED=0if [ ! -e "$PWD/$1" ]thentouch "$PWD/$1"FCREATED=1fissh derosier@$REMOTEHOST /usr/local/bin/bbedit -c -u --front-window "sftp://$USER@$HOSTIP/$PWD/$1"# The above call will background and return immediately. The file will open in bbedit# but since we've created it, and we don't want to leave it around, we kill it right away.# If the user saves it, it gets recreated and content is saved. If not, there's no file,# so we're cool too. It's a bit odd, but it works.if [ "$FCREATED" -eq "1" ]thenrm "$PWD/$1"fi}
ssh derosier@$REMOTEHOST /usr/local/bin/bbedit --front-window $1 "sftp://$USER@$HOSTIP/$PWD/$2"
--
This is the BBEdit Talk public discussion group. If you have a
feature request or would like to report a problem, please email
"sup...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
---
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bbedit+un...@googlegroups.com.
To post to this group, send email to bbe...@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.
Host XXXXXX.localHostName XXXXXX.localForwardX11 yesForwardX11Trusted yesTCPKeepAlive yesServerAliveInterval 60AddressFamily inet
On 12 Jul 2018, at 9:41, Rick Gordon wrote:
Does that even make any sense, in term of logistics?
Yes, and there is already a script for it:
Everyone else using a different method; is there something that would make rbbedit more useful for you?
-cng
--
Charlie Garrison <cha...@garrison.com.au>
Garrison Computer Services <http://www.garrison.com.au>
PO Box 380
Tumbarumba NSW 2653 Australia
On 12 Jul 2018, at 14:08, Christopher Stone wrote:
I suggest you change this to `curl`, since `wget` is not installed by default in any macOS.
I suspect curl is also used by the install script. Any chance I could get you to submit an "issue" on GitHub so I don't forget to make that change.
-cng
PS. Really?!! curl is not installed on new systems? Thanks for pointing it out, and wow, that surprises me.
PPS. I just realised that the instruction/command you refer to is for installing on remote host (which may or may not be an OSX host). In general (across all distros), I wonder whether curl or wget is more likely to be installed.