Sunday 2 December 2012

Write to a file from wsadmin


This one is dead simple, but (for me) really usefull especially as I cant stand spending hours navigating IBM websites trying to find a simple AdminTask command for WPS.

With these three lines you can dump pages of stuff out to a file without leaving the wsadmin command line...

wsadmin> file = open('c:\\temp\\admin_task_commands.txt','w')
wsadmin> file.write(AdminTask.help('-commands'))
wsadmin> file.close()

1 comment: