1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-20 11:40:18 +02:00

"Scripting Examples" update.

* doc/ref/scheme-scripts.texi (Scripting Examples): Mention system* and
  open-pipe.
This commit is contained in:
Andy Wingo 2017-02-28 16:22:42 +01:00
parent 94d70684c1
commit f3a1872703

View file

@ -402,6 +402,17 @@ $ ./choose 50 100
100891344545564193334812497256
@end example
Finally, seasoned scripters are probably missing a mention of
subprocesses. In Bash, for example, most shell scripts run other
programs like @code{sed} or the like to do the actual work.
In Guile it's often possible get everything done within Guile itself, so
do give that a try first. But if you just need to run a program and
wait for it to finish, use @code{system*}. If you need to run a
sub-program and capture its output, or give it input, use
@code{open-pipe}. @xref{Processes}, and @xref{Pipes}, for more
information.
@c Local Variables:
@c TeX-master: "guile.texi"