Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Devops
  3. Question
Devops

What should be the bash script for a script which can capture stdout and stderr?

Asked by Aalap Prabhakaran Jan 12, 2024 793 views 1 answer
Share

About this question

There is a scenario where I am working on Monitoring scripts in the environment of bash. My specific task is to design a script that can run a command and capture both standard Output ( stdout) and standard error (stderr) and also can redirect both streams to separate files for logging. Can you provide me the bash script which can achieve this functionality? 

Your answer

1 Answer

More Devops discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest DevOps Blogs

Guides, tips and career advice on DevOps from JanBask experts.