Shell / Command line redirection

Everything else that doesn't fall into one of the other PB categories.
hypervox
User
User
Posts: 48
Joined: Mon Apr 28, 2003 10:02 am
Location: UK
Contact:

Shell / Command line redirection

Post 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
PC 1:AMD Athlon XP 2000,Geforce 2 MX400 64Mb, Windows 2000 :D
PC 2:Intel P3 1ghz, Nvidia Vanta 16Gb, Windows 2000 :)
Registered Purebasic User :D

PureBasic Game Creation Site
http://www.hypervox.co.uk/PureBasic/
User avatar
Rings
Moderator
Moderator
Posts: 1435
Joined: Sat Apr 26, 2003 1:11 am

Post 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.
SPAMINATOR NR.1
hypervox
User
User
Posts: 48
Joined: Mon Apr 28, 2003 10:02 am
Location: UK
Contact:

Post 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.
PC 1:AMD Athlon XP 2000,Geforce 2 MX400 64Mb, Windows 2000 :D
PC 2:Intel P3 1ghz, Nvidia Vanta 16Gb, Windows 2000 :)
Registered Purebasic User :D

PureBasic Game Creation Site
http://www.hypervox.co.uk/PureBasic/
Fred
Administrator
Administrator
Posts: 18349
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

sorry the link was broken: viewtopic.php?t=3704

I fixed the link on the other page.
hypervox
User
User
Posts: 48
Joined: Mon Apr 28, 2003 10:02 am
Location: UK
Contact:

Post by hypervox »

AAAAAAAhhhhhhhhhhhh........ and relax! :lol:

Cheers Fred.

Rgrds

Hypervox
PC 1:AMD Athlon XP 2000,Geforce 2 MX400 64Mb, Windows 2000 :D
PC 2:Intel P3 1ghz, Nvidia Vanta 16Gb, Windows 2000 :)
Registered Purebasic User :D

PureBasic Game Creation Site
http://www.hypervox.co.uk/PureBasic/
Post Reply