[plt-scheme] Scsh script <-- Postgres database --> PLT program
Neil W. Van Dyke wrote:
> nishad at ptolemy.tlg.uci.edu wrote at 2005-04-26T11:58:55-0700:
>
>>I want to write one program that does both: retrieve DB values on its
>>own, and use the Unix shell tools. Is there a way to do this, without
>>the clunkiness of having the scsh program call the PLT program to
>>write the DB values out to file, then read the file, and so on...?
>
> I would probably forget about Unix shell tools, and write the entire
> program in either PLT or Scsh.
>
> But if one of your questions is whether or not PLT can exec Unix shell
> tools, the answer is yes:
>
> http://download.plt-scheme.org/doc/mzscheme/mzscheme-Z-H-15.html#node_sec_15.2
> http://download.plt-scheme.org/doc/mzlib/mzlib-Z-H-33.html#node_chap_33
See also
<http://schemecookbook.org/view/Cookbook/ProcessRunningExternalProcess>
<http://schemecookbook.org/Cookbook/ProcessCaptureOutput>
--
Jens Axel Søgaard