I am not sure what your question is and as no-one has replied forgive me for my attempt.
If you want to capture the output of a command in a window ...generally this is achieved by
Code:
command > /pathwaytosavefile/newfilename
eg
$ ls > /home/gordy/ls
gordy@siduxbox:~$ cat ls
01dox
2008-08-27-09-03-31.011-VirtualBox-3329.log
Desktop
firefox
ls