catch apps output

Linux specific forum
Ace
User
User
Posts: 26
Joined: Fri Apr 25, 2003 8:34 pm

catch apps output

Post 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

Code: Select all

pwd >>file.txt
and read the file?
ShDancer
User
User
Posts: 51
Joined: Sat Apr 26, 2003 5:49 am

Re: catch apps output

Post 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

Code: Select all

pwd >>file.txt
and read the file?
A dumb question.
Did you tried Pipes ???

cat file.txt | pbapp

Its just a sugestion, i didn't tried.
Ace
User
User
Posts: 26
Joined: Fri Apr 25, 2003 8:34 pm

Post by Ace »

but how do i catch the results 8O
naw
Enthusiast
Enthusiast
Posts: 573
Joined: Fri Apr 25, 2003 4:57 pm

Post 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 :?
Ta - N
Post Reply