[lazarus] IPC question...

Tom Lisjac netdxr at adelphia.net
Fri May 2 05:57:20 EDT 2003


Hi everyone!

I'm in the process of migrating some Linux shell scripts I've written
into Lazarus... but I'm trying to figure out an efficient way of
redirecting the I/O of external programs like mkisofs, md5sum and a few
others without having to create a bunch of temporary disk files?

In bash you can launch and redirect the output of "externalprogram" to
THEVAR with:

  THEVAR="`externalprogram`"

In perl it's:
  @output = `externalprogram`;

In python, via the "os" module:
  README = os.popen('externalprogram', 'r')

Is there a way to do this in Object Pascal under Linux... or is using a
temporary text file the best approach?

Thanks,

-Tom


 






More information about the Lazarus mailing list