scsh-users
[Top] [All Lists]

non-interactive mode

To: scsh-news@zurich.ai.mit.edu
Subject: non-interactive mode
From: Anthony Carrico <acarrico@memebeam.com>
Date: Wed, 12 Mar 2003 21:51:07 -0500
Seems like an FAQ, but how do I run scsh in non-interactive mode?
Consider the following program:

#!/bin/bash

bash <<'bash'
  echo bash hello world
bash

scsh <<'scheme'
  (begin (display "scsh hello world") (newline))
scheme

The sub-bash knows that it is a non-interactive use, but the sub-scsh
doesn't so I get a bunch of junk:

bash hello world
Welcome to scsh 0.6.3 (Health Reform)
Type ,? for help.
> scsh hello world
>
Exit Scsh? (y/n)?
I'll only ask another 100 times.
Exit Scsh? (y/n)?
...


--
Anthony Carrico

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