[TxMt] Re: running command to remote computer via ssh

Charles Stuart cs at enure.net
Wed Aug 16 20:24:12 UTC 2006


On 8/15/06, Benjamin Jackson <ben at incomumdesign.com> wrote:
> > I'm thinking the best solution might be to set up passwordless
> > authentication via SSH and set the remote computer details in the
> > script?
>
> That's the way to go. You can run a command on a remote server like
> this:
>
> ssh user at host.com 'echo "I'm on the server!!!" '

Thank you all. I have passwordless authentication set up and I can now
send a command via Textmate.

Next question: Is there a TM variable for the current open file? So,
just like TM_FILEPATH, but with just the file name? I work remotely on
the files in Textmate via Samba, so the filepath makes no sense on the
remote machine via SSH when I pass a command. However, if I could get
just the path/to/file from the work directory on the remote machine I
could successfully check out a file from Clearcase from inside of
Textmate. I'm not sure how one would go about removing part of the
TM_FILEPATH.

Thanks for any assistance.


best,
Charles



More information about the textmate mailing list