help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: keyboard macro to record scp (password)


From: Peter Münster
Subject: Re: keyboard macro to record scp (password)
Date: Tue, 12 Jul 2011 14:49:55 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

On Tue, Jul 12 2011, C K Kashyap wrote:

> (defun fun (n) (progn
> (insert "ssh machinename") 
> (sleep-for 2)
> (insert "password")
> )
> )
>  
> the above function illustrates my point. When I execute this function, the
> sleep happens first and then the complete inserts.

IMH emacs is not the right tool for this task. (sleep-for) was just an
idea, I don't use shell in emacs.

Here some tool suggestions for different tasks:

task                          tool

programmed dialogue
with interactive programs     expect

password-less scp             public-key auth. / ssh-agent

accessing remote files        sshfs, tramp, nfs, etc.

-- 
           Peter




reply via email to

[Prev in Thread] Current Thread [Next in Thread]