mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 19:28:00 +00:00
lf_check.py lf_check_config.ini : added stderr and stdout support
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
@@ -111,7 +111,13 @@ class lf_check():
|
||||
print("cmd_args {}".format(cmd_args))
|
||||
|
||||
#try:
|
||||
process = subprocess.run((command).split(' '), check= True, stdout=subprocess.PIPE, universal_newlines=True)
|
||||
process = subprocess.run((command).split(' '), check= True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True)
|
||||
#process = subprocess.run((command).split(' '), check= True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, universal_newlines=True)
|
||||
|
||||
print("###################### STDOUT #########################")
|
||||
print(process.stdout)
|
||||
print("###################### STDERR #########################")
|
||||
print(process.stderr)
|
||||
#except:
|
||||
# print("exception on command: {}".format(command))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user