Display console output while running exec

asked 2017-01-13 17:05:11 -0500

puppetamateur gravatar image

How can I display the console output in the screen while running the exec to run a command line?

edit retag flag offensive close merge delete



Setting the `logoutput` attribute of the exec resource https://docs.puppet.com/puppet/latest/types/exec.html#exec-attribute-logoutput to `true` prints the output _after_ the command has finished. Is that sufficient?

Kai Burghardt gravatar imageKai Burghardt ( 2017-01-13 22:16:36 -0500 )edit

but is there possibility to print output during executing command? fe. for long exec?

h3x89 gravatar imageh3x89 ( 2018-02-08 05:47:15 -0500 )edit

AFAIK, no.

Kai Burghardt gravatar imageKai Burghardt ( 2018-02-09 17:53:37 -0500 )edit