linux - replay bash session with correct time delay -
edit ( seems important, goes on top, see below details) : need script execute commands, not display recorded ! script utility not far know. auto hotkey, bash , linux, timing information recorded.
the question :
i record , replay bash session, exact time delay between key presses , on.
for instance, if run program called xxx
, break ctrl+c after 11.4s , run program called yyy
3.4s after exited xxx
, replay same (break xxx
ctrl+c after 11.4s, wait 3.4s , run yyy
).
i don't need record mouse movements, interested in recording happens in single bash session.
i have looked utilities as
- script (it records bash session commands, no time delay info.)
- xmacro (it records key presses again no time info.)
- a person searching similar might want this (i including link because of possible value other users; don't find of solutions mentioned useful want achieve.)
script -t standard answer.
i rewrote script in python, can find here: http://stromberg.dnsalias.org/~strombrg/pypty/
both support -t. main reason wrote pypty wanted able 1 file per day logging long ssh sessions, sake of future reference.
the pypty tarball includes script-replay script (note slight difference of name scriptreplay) can go forward , in tty log file, using gtk or curses. means of going backwards bit of hack (because vt100 isn't simple), i've found quite useful on number of occasions.
Comments
Post a Comment