scsh-users
[Top] [All Lists]

Re: comma commands in batch mode

To: spot@HOPELESS.MESS.CS.CMU.EDU
Subject: Re: comma commands in batch mode
From: "Jin S. Choi" <jsc@atype.com>
Date: Tue, 9 Jan 1996 13:49:18 -0500
Cc: scsh@martigny.ai.mit.edu
Reply-to: jin@atype.com
>>>>> "spot" == spot  <spot@HOPELESS.MESS.CS.CMU.EDU> writes:

    >> Can one run comma commands (,load ,open etc.) from a script running
    >> in batch mode?

    spot> yes, but the syntax is different (parenthesized).  for
    spot> example, i load a file with the following lines:

    spot> (config '(load "markup/util.scm"))
    spot> (config '(load "markup/match48.scm"))
    spot> (config '(load "markup/convert.scm"))
    spot> (config '(load "markup/dot.scm"))
    spot> (config '(load "markup/layout.scm"))
    spot> (config '(load "markup/main.scm"))
    spot> (config '(load "packages.scm"))

    spot> with this interactive command

    spot> ,exec ,load loadem.exec

Is there any way to do it without typing anything interactively at
all?

I just want to use a little script I wrote in batch mode (with 
scsh -s). I get the following. Also, is there a parenthesized form for
,open?


> (chdir "/usr/src/scsh-0.4.2/net")
> (config '(load "net-package.scm"))

Error: undefined variable
       config
       (package user)
1> 

<Prev in Thread] Current Thread [Next in Thread>