Page 1 of 1
catch apps output
Posted: Sun Jun 22, 2003 9:12 pm
by Ace
if i run a command like pwd with RunProgram how can i catch the result from pwd so i can use it in my pb app? or have i to do
and read the file?
Re: catch apps output
Posted: Mon Jun 23, 2003 10:28 am
by ShDancer
Ace wrote:if i run a command like pwd with RunProgram how can i catch the result from pwd so i can use it in my pb app? or have i to do
and read the file?
A dumb question.
Did you tried Pipes ???
cat file.txt | pbapp
Its just a sugestion, i didn't tried.
Posted: Mon Jun 30, 2003 2:03 pm
by Ace
but how do i catch the results 8O
Posted: Tue Jul 29, 2003 5:28 pm
by naw
Hi,
I need this too - at the mo' doing very ugly things with redirecting output to a file, then reading it back into a PB String and finally closing and deleting the file. Very ugly, but it works
