views:

195

answers:

2

Hi all,

I have a simple question.

Is that possible to simulate an keyboard action ie: ctrl-a d for detach a screen in a script,

I need this to check in the screen the folowing keyword "SEGFAULT" an then restart the processus.

If you have any suggestion...

Best regards

Paca

+3  A: 

This is exactly what Expect was written for. :)

Bob Somers
A: 

Thanks it's works

you should accept his answer since it works.
yx