Capture program output

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by ajm.

Hi

Can someone explain how to capture the output from an external program run from a purebasic program.

For example capture the output of compiler, tool, ping command etc.



Thanks

Andy

Registered PB User
Windows XP Home
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Rings.

there is a very handy function in this forum, called 'Search'

btw. hee is a direct link:

viewtopic.php?t=3704


Its a long way to the top if you wanna .....CodeGuru
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by ajm.

Sorry Rings,

I tried the serch function several times with different criteria but it kept comming back with no results.

Thanks for the direct link anyway.


Thanks

Andy

Registered PB User
Windows XP Home
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by ricardo.
I tried the serch function several times with different criteria but it kept comming back with no results.
If you try "Capture OutPut" in the search you can find all the solutions that was given to different situations, like El_Choni's lib. CGI that could help you.



Best Regards

Ricardo

Dont cry for me Argentina...
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by El_Choni.

Just one question: you want to start a program from PB, capture its output and close it, or you also need to write to it afterwards? (ricardo knows these are two different things... :wink: BTW, I hope I will be able to take a look at the thing this weekend, but if you haven't achieved it, I don't know if I'll be able to do so. IIRC, you posted and example long ago of capturing program's output, didn't you?

El_Choni
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Kale.

it would be quite nice to have access to stdin, stdout, stderr in PB.

--Kale

In love with PureBasic! :)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by ajm.

Hi

The link supplied by Rings was perfect, Thanks.

I'm not sure why the search kept comming up with no results, It was even doing it if I put in the word Purebasic or and.

Not to worry it all seems to be working now ...

I amazes me how fast you peoples respond to the posts on this forum, its as if you sit and monitor them all day.

Your all a great help to each other.



Thanks

Andy

Registered PB User
Windows XP Home
Post Reply