all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Gary <help-gnu-emacs@garydjones.name>
To: help-gnu-emacs@gnu.org
Subject: Scripting actions over tramp
Date: Tue, 05 Oct 2010 14:13:28 +0200	[thread overview]
Message-ID: <i8f4p8$92k$1@dough.gmane.org> (raw)

Maybe I should just try this, and am "worrying" over nothing, but I am
absolutely cream-crackered after being woken twice by alarms last night,
so my brain isn't working.

Is there a way to perform automated actions via tramp (or some other
method in emacs) on remote hosts?

Something like:

(tramp-ssh-connect some.host)
(tramp-exec "ls -la") ;; list directory contents on some.host
(tramp-disconnect some.host)

or something. I'm not bothered about having to type in username/password
combinations at this stage in order to login, more about executing some
commands on the remote host.

I'm also not interested in editing remote files in this scenario, what I
want is to be able to have the mode I am writing be able to interact
with the host to which I have just uploaded a script, say (that's not it
exactly but it's the easiest way to describe it).

-- 
Gary        Please do NOT send me 'courtesy' replies off-list.
GNU Emacs 23.2.1
emacsclient 23.2




             reply	other threads:[~2010-10-05 12:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-05 12:13 Gary [this message]
2010-10-05 14:30 ` Scripting actions over tramp Michael Albinus
2010-10-06 11:47   ` Gary
     [not found]   ` <mailman.1.1286365681.29500.help-gnu-emacs@gnu.org>
2010-10-07  8:17     ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='i8f4p8$92k$1@dough.gmane.org' \
    --to=help-gnu-emacs@garydjones.name \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.