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