Run OS Command w/ Expected Output


/ Published in: Python
Save to your folder(s)

Run the specified command. If expect is not None then look for the given text in the output. If it is not there we throw an error. expect can also be a list of strings. In that case any match results in success unless matchall=True.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.