You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 28, 2024. It is now read-only.
I have been trying to log the output that i get on cmd through interact.expect() into a file. But file is not receiving anything. I am not able to find a proper code as well. Could you please help me with that.
Pasting my code for reference:
interact.send("show full-configuration")
with open('backup1'+'.txt','w') as file:
for line in interact.expect("",timeout=1):
file.write(line)
I am trying to fetch the fortigate configuration output. Please help me. Thanks!
Hi sir,
I have been trying to log the output that i get on cmd through interact.expect() into a file. But file is not receiving anything. I am not able to find a proper code as well. Could you please help me with that.
Pasting my code for reference:
interact.send("show full-configuration")
with open('backup1'+'.txt','w') as file:
for line in interact.expect("",timeout=1):
file.write(line)
I am trying to fetch the fortigate configuration output. Please help me. Thanks!