Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • are you doing this in bash? Commented Apr 19, 2019 at 3:17
  • yes, in bash script @jhnc Commented Apr 19, 2019 at 3:32
  • Yes I could use the exit code of the command: ``` systemctl status firewalld``` however, in both cases, if firewalld is masked or dead, the exit code is 3. And I have to know if firewalld is masked or dead Commented Apr 19, 2019 at 3:34
  • See mywiki.wooledge.org/Quotes Commented Apr 19, 2019 at 15:09
  • 1
    Thank you @EdMorton I will read the quote Commented Apr 20, 2019 at 12:07