[comp.lang.icon] shell script vs. icon pipes

goer%sophist@GARGOYLE.UCHICAGO.EDU (Richard Goerwitz) (01/07/88)

In response to a posting (which I have - unfortunately - rm'ed), try:

procedure main()
    local output, com
    com := "echo \'this is a message\' | (sleep 15; cat)"
    output := open(com,"rp") | stop("Try again :-)")
    write(!output)
end

This also works fine.  You could, of course, do com := arg[1] || "| (sleep
15; cat)".