[racket] Embedding multiline shell scipts

From: Manfred Lotz (manfred.lotz at arcor.de)
Date: Sun Feb 6 08:43:30 EST 2011

On Sun, 6 Feb 2011 15:12:49 +0200
"Jukka Tuominen"
<jukka.tuominen at finndesign.fi> wrote:

> 
> Thanks Manfred and Thomas,
> 
> I'm just about to try these. One more requirement that I forget to
> mention is that it should also be possible to handle "expect" type of
> "automated conversations". You can pass several independent commands
> with system/output without problem, but I had difficulties in
> figuring out how to log into different machines, change the user etc.
> where you need to pass answers interactively or otherwise move
> between various modes (which expect can automate).
> 

I thought your question was how to create a multiline script. 

The easiest way doing interaction might be to use expect command in your
script which you create from racket or to execute expect command via
(system ...) or even (process ...). 


-- 
Manfred 



Posted on the users mailing list.