[TxMt] Edit remote file via SSH

Jeremy Wilkins jeremy at ibexinternet.co.uk
Tue Jan 17 11:28:35 UTC 2006


Ok, theres a $SSH_CONNECTION variable which gets set, that includes  
both client and server IP addresses.

You should be able to pull the client IP out of that with sed, then a  
script like

scp $1 <clientip>:/tmp/$1
ssh <clientip> mate -w /tmp/$1
scp <clientip>:/tmp/$1 $1

Jeremy

On 17 Jan 2006, at 11:08, Simon Dorfman wrote:

> On 1/17/06 4:57 AM, "Jeremy Wilkins" <jeremy at ibexinternet.co.uk>  
> wrote:
>
>> Cyberduck FTP can connect to an sftp server and open files in a text
>> editor (textmates one of the options). When you save the file in
>> textmate, it then automatically uploads back to the server.
>
> My FTP client of choice (Interarchy) can do that also.  But  
> sometimes I'm at
> a command line, logged in via SSH and I just wish I could type  
> "mate" to
> edit a file instead of "nano".
>
>
>
> ______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate
>

---
Jeremy Wilkins
Ibex Internet Ltd

Parkside Business Park
Parkside Rd.
Kendal
Cumbria
LA9 7EN

Tel: 0845 226 8342
Fax: 08718 729374

http://www.ibexinternet.co.uk/







More information about the textmate mailing list