|
From: | Kaushal Shriyan |
Subject: | Re: [Fab-user] fabric std output to file |
Date: | Mon, 18 Jul 2016 19:54:46 +0530 |
There are two approaches here. The first is to open a file and write the result of the 'w' command from within checkconn, the other is to redirect from the shell.$ fab checkconn > checkconn_result.logORdef checkconn():result = run('w')with open('checkconn_result.log', 'w') as f:f.write(result)
[Prev in Thread] | Current Thread | [Next in Thread] |