######
#  Create a file (html or markdown) with the output of
#      - JVMHeap
#      - LogFiles
#      - Ports
#      - Variables
#
#  Author:        Christoph Stoettner
#  Mail:          christoph.stoettner@stoeps.de
#  Documentation: http://scripting101.stoeps.de
#
#  Version:       2.0
#  Date:          2014-06-08
#
#  License:       Apache 2.0
#

# TODO: Create a menu for file selection

import ibmcnx.filehandle
import sys

sys.stdout = open("/tmp/documentation.txt", "w")

print '# JVM Settings of all AppServers:'
execfile( 'ibmcnx/doc/JVMSettings.py' )

print '# Used Ports:'
execfile( 'ibmcnx/doc/Ports.py' )

print '# LogFile Settgins:'
execfile( 'ibmcnx/doc/LogFiles.py' )

print '# WebSphere Variables'
execfile( 'ibmcnx/doc/Variables.py' )
@@ -430,56 +430,64 @@
 ys%0A%0A
-sys.stdout = open(%22/tmp/documentation.txt%22, %22w%22)
+emp1 = ibmcnx.filehandle.Ibmcnxfile()%0A%0Asys.stdout = emp1
 %0A%0Apr

Create script to save documentation to a file