This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

Need to monitor Linux Command Output using SUDO credentials

Hi Everyone,

I am trying to get the output of a Linux Command and then to alert on it. i have non-root credentials which have sudo permissions to run that command.

Referring below article I am putting "sudo bash ${Script}" in the command line and then simple command in the Script body but this is not giving me any output. Instead the processing never completes. Am I doing anything wrong?

https://solarwinds-v9.hosted.jivesoftware.com/docs/DOC-178469

Also after this the output of the command in not just single output instead it is a set of string in multiple line I want to break them up into variables line wise. How can I achieve that?