scsh-users
[Top] [All Lists]

Simple Redirection Question

To: scsh@zurich.ai.mit.edu
Subject: Simple Redirection Question
From: dtillman@ozarkaircraftsystems.com
Date: Tue, 25 Jul 2000 16:16:27 -0500

  I am new to scsh and am having a bit of difficulty determining
  the right way to go about this:

  I understand that I can do (& pf redir1 ... (<< ,foo)) and so forth,
  but what I need to do (with no error checking obviously) is more
  along the lines of:

  
    (define some-list '("larry" "moe" "curly"))  
    (define some-port (open-process pf))

    (for-each (lambda (l)
                (format some-port "> ~a~%" l))
              some-list)

    (close some-port)


  Thanks for any pointers in the right direction.

  -Dave



-- 
How absolute the knave is!
We must speak by the card, or equivocation will undo us.


              

<Prev in Thread] Current Thread [Next in Thread>
  • Simple Redirection Question, dtillman <=