Score:0

Redirect or duplicate all stdout and stderr to a file permanently

es flag

I'm familiar with appending "&>> log_file.txt" to a command to redirect that output. But what if I want to log all CMD output in a file, always. Is there a config file change to redirect stdout/stderr's default location?

Closest I've found is this but it's script specific. I'm looking for a server-wide solution.

I'd prefer to have CL output still, with a file copy being made/appended to constantly - but would be fine with just the text file storage and eliminating all CL output.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.