Good morning,

I didn't really follow your use-case (is it just issue with root-owned files). `rbbedit` is effectively a wrapper for `ssh/scp` and `bbedit` commands.

You talk about both a "simple one-liner" and "change of workflow" in one paragraph. Yes, `rbbedit` is more than one line underneath, so that it can become that 'one-liner' for different people on different servers. For me, a manual one-liner would have to be adapted for many of the different servers I use, but `rbbedit` is consistent across all of them.

I did change my workflow for `rbbedit`, but overall it's a simpler workflow.

For root-owned files, you should be able to use the `scp` 'copy method' with `rbbedit`, but the `--wait` flag is enforced so not best for all cases. Otherwise, I've been known to create a temp copy with changed user ownership, and use `rbbedit` to edit the temp file. I’m not recommending that though since it's not a safe thing to do in many cases. Safely editing root-owned files is a "big topic".

So if your issue is editing root-owned files without allowing root access, then `rbbedit` is not the tool you seek. If you find a "safe" solution, I would be keen to hear about it and maybe add to `rbbedit`.

-cng

On 6 Nov 2020, at 20:56, Peace Keeper wrote:

Thanks Charlie,

I have read some threads here in the forum about rbbedit. I just looked
through the code on github and it is a nice script. I think for me a
one-liner with scp might be enough. On the other side I think about
changing my workflow a bit. As I am using anyhow tmux from the macOS with bbedit installed, Only challenge are files owned by root as I don't allow ssh connection for root. But I could change my workflow to use first git and push the file to my Mac as remote, then make changes with bbedit on my private "github" on my make includeing a checkin, then initate a git pull from remote. This workflow would bring me some additional improvments: all files are versioned, all files are backuped, a centralized repository for
distributing the changes to all other server would be available.

As I understand that BareBones is focusing on the macOS, a bbedit-daemon on remote systems would be a nice feature and might be needed anyhow in the
future: if people switch from laptop to tablets only , they will
program/work directly on the remote machines using the tablet only as a front-end ( Something like a dump terminal with some local features) In
this case. In a CI and CD environment that would be a nice feature.

Charlie Garrison schrieb am Donnerstag, 5. November 2020 um 23:38:18 UTC+1:

On 6 Nov 2020, at 8:30, Peace Keeper wrote:

Too bad, that I can't use bbedit from a remote tmux session to initiate an edit of a local file on a remote server. Seems I still have to initiate
that from macOS

It's not the actual editor, but rbbedit will help with editing files
using BBEdit, that you have on remote servers.

   -

   https://github.com/cngarrison/rbbedit

Edit local (server) files on remote (users) workstation using BBEdit.


-cng

--

Charlie Garrison                   <[email protected]>
Garrison Computer Services      <http://www.garrison.com.au>
PO Box 380
Tumbarumba NSW 2653  Australia



--
This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "[email protected]" rather than posting here. Follow @bbedit on Twitter: <https://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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/4ae46a8d-38c4-4388-8d78-76963208c6bfn%40googlegroups.com.




--

    Charlie Garrison                   <[email protected]>
    Garrison Computer Services      <http://www.garrison.com.au>
    PO Box 380
    Tumbarumba NSW 2653  Australia

--
This is the BBEdit Talk public discussion group. If you have a feature request or need 
technical support, please email "[email protected]" rather than posting here. 
Follow @bbedit on Twitter: <https://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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/12F4A3D5-1211-4F2C-9C40-BCA08FAF56E9%40garrison.com.au.

Reply via email to