Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.

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.

Required fields*

9
  • Thank you @MartijnPieters , First I should use "check_output" i need the results in my program, when I use "call()" it also have 2 warning, Do you think, it could be the problem? Commented Oct 12, 2018 at 16:10
  • could you please tell me exactly how can I "fix the command"? Commented Oct 12, 2018 at 16:17
  • 1
    @afsane: I don't know, I am not familiar with the command. I don't know what the exit code is or what that would mean. Commented Oct 12, 2018 at 16:18
  • Ok, Thanks anyway. Commented Oct 12, 2018 at 16:20
  • @afsane: the manpage I found states: oscap returns 0 if all rules pass. If there is an error during evaluation, the return code is 1. If there is at least one rule with either fail or unknown result, oscap-scan finishes with return code 2. So look at the specific exit code given. Perhaps use subversion.run() and do not set check=True. Commented Oct 12, 2018 at 22:32