Output from chef-client


If I run chef-client, I see output. However, if I run 'chef-client 2>&1 >
output.txt ; cat output.txt", I see nothing. This makes no sense. Where did
the output go?


A better choice may be to use the log options to get a full log of what chef is doing. Look at the -l and -L options, one specifies a log location, the other the log level.

–Jp Robinson

The -Fdoc option may also be useful… forces chef-client output to use the same formatter as when you run it to stdout.