]> gitweb.factorcode.org Git - factor.git/commitdiff
io.launcher: fix launcher examples.
authorJohn Benediktsson <mrjbq7@gmail.com>
Mon, 18 Apr 2011 01:12:23 +0000 (18:12 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Mon, 18 Apr 2011 01:12:23 +0000 (18:12 -0700)
basis/io/launcher/launcher-docs.factor

index 6f48cfcdc8275f4674ee9eb0fb8eefaad7331aa2..0e7c11b6e4b8fcbbf70c87701c03170982e5749f 100644 (file)
@@ -260,11 +260,11 @@ ARTICLE: "io.launcher.examples" "Launcher examples"
 }
 "Running a command, appending error messages to a log file, and reading the output for further processing:"
 { $code
-    "\"log.txt\" <file-appender> ["
+    "\"log.txt\" ascii <file-appender> ["
     "    <process>"
     "        swap >>stderr"
     "        \"report\" >>command"
-    "    ascii <process-reader> lines sort reverse [ print ] each"
+    "    ascii <process-reader> stream-lines sort reverse [ print ] each"
     "] with-disposal"
 } ;