diff options
author | Andy Wingo <wingo@pobox.com> | 2017-02-28 16:22:42 +0100 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2017-02-28 16:22:42 +0100 |
commit | f3a1872703bf8b9b8f92bbdba01aa75927bd1b8f (patch) | |
tree | 87a89e781124f9e18e3c2c130961c350b426bc25 /doc/ref/scheme-scripts.texi | |
parent | 94d70684c19f8074baaec83ae2038898ad3e092f (diff) | |
download | guile-f3a1872703bf8b9b8f92bbdba01aa75927bd1b8f.tar.gz |
"Scripting Examples" update.
* doc/ref/scheme-scripts.texi (Scripting Examples): Mention system* and
open-pipe.
Diffstat (limited to 'doc/ref/scheme-scripts.texi')
-rw-r--r-- | doc/ref/scheme-scripts.texi | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/ref/scheme-scripts.texi b/doc/ref/scheme-scripts.texi index 7552dba33..296bea772 100644 --- a/doc/ref/scheme-scripts.texi +++ b/doc/ref/scheme-scripts.texi @@ -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" |