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?