0

If I pipe the output of a long-running command to less, for example:

foreman start | less -SR

And I now press F to follow the output of foreman, is there any way to tell less to stop following, without pressing CtrlC? Because that will also send the SIGINT to the process being piped from, in this case foreman, which will make it stop.

I just want to temporarily stop following so I can scroll and examine the output for a bit.

Hubro
  • 1,138
  • 4
  • 16
  • 35
  • https://askubuntu.com/a/905825/508092 - Looks like there's no directly supported way to leave "Forward Forever" mode, but you can fake it. – sippybear Feb 25 '20 at 18:11
  • @sippybear Hmm, nice find... The accepted answer suggests the workaround I'm already using. Too bad there's no proper way to do this :( – Hubro Feb 25 '20 at 18:14
  • @sippybear I [requested the feature](https://github.com/gwsw/less/issues/49#issue-570746129), but I'm not optimistic. – Hubro Feb 25 '20 at 18:21

0 Answers0