[fpc-pascal]linux question
A.J. Venter
ajventer at direqlearn.org
Tue Sep 21 07:56:25 CEST 2004
On Tuesday, 21 September 2004 06:55, Paul Aviles wrote:
> Forgive me for asking.. I need to do a few things, one is to run a shell
> script and invoque program "prgA" and pass the result of program A back to
> the shell script. I guess I can do:
>
> BACK = /sbin/prgA; echo $?
>
> A) is that correct?
erm that's the EVIL way.
Try
BACK=`/sbin/prgA`
> B) how does prgA report the output back, using a simple write statement?
For this one at least, yes, I've done many of those using little FPC shorts to
enhance shell scripts.
>
> Thanks
>
> Paul
--
A.J Venter
Lead Developer, DireqLearn
082 726 5103
http://www.direqlearn.org
http://www.direqlearn.net/olce
http://silentcoder.blogsite.org
More information about the fpc-pascal
mailing list