0

I have a running process that I've started with screen. I want to enable log file "on the fly" sending CTRL+a SHIFT+H from a script:

screen -dr process -X stuff ^A H , screen says --> -X: stuff: invalid option
screen -dr miner -X stuff "^A H" , screen says nothing but log file is not enabled

Using -p 0 does not make any difference. Basically what I need is to send SHIFT+H as it seems that for screen it's not the same to send "H" than SHIFT+H

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Fer Nando
  • 7
  • 2

1 Answers1

0

Don't send the key strokes; just send the command log which is what ^A H (by default) is bound to.

screen -dr process -X log
chepner
  • 497,756
  • 71
  • 530
  • 681
  • Great, it's just what I need it. System does not let me give you a point :-( – Fer Nando Oct 31 '17 at 22:57
  • You should be able to accept the answer; I think you need a little more reputation before you are allowed to start upvoting answers. – chepner Nov 01 '17 at 01:19