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: C K Kashyap
Subject: Re: keyboard macro to record scp (password)
Date: Tue, 12 Jul 2011 16:20:37 +0530


Hi Peter,
I tried the (sleep-for 3) idea - there seems to be a problem though - for some reason, when I playback the macro, the sleep happens first and then the whole thing gets typed. 

What I did was, record the macro and then edit it and insert the M-: (sleep-for 3)C-j right after the return key after the ssh command.



(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.

Regards,
Kashyap

reply via email to

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