Page 1 of 1

Shell / Command line redirection

Posted: Fri May 16, 2003 12:26 pm
by hypervox
Hi All,

Is there any way you can capture the output of a command line program and use it in PB?

I.e. I have a command line program that prints a list of data - If I shell that program from PB, I want to capture it's output whilst the program is still running, and display it in a pb gadget. I know you can do it in other languages - is there some sort of windows API call that can create a callback function that PB can process?

Rgrds

Hypervox

Posted: Fri May 16, 2003 1:11 pm
by Rings
sorry for say that agian, but please use the search-functions first before asking.
there is a solution in the tips&tricks-section.

Posted: Fri May 16, 2003 1:45 pm
by hypervox
I tried that already. I found one post about redirecting to a text file (not what I want to do), and another post pointing to this....

viewtopic.php?t=952

But this link comes up with an error.

If anyone knows where the post is that this link points to, I'll use it.

Posted: Fri May 16, 2003 2:57 pm
by Fred
sorry the link was broken: viewtopic.php?t=3704

I fixed the link on the other page.

Posted: Fri May 16, 2003 4:48 pm
by hypervox
AAAAAAAhhhhhhhhhhhh........ and relax! :lol:

Cheers Fred.

Rgrds

Hypervox