So, once i have created the script within racket as multiline string, how do I actually run it within racket without writing or reading any external files, and capture the output of the script for further processing (also in racket).
In other words, I could write the script into a file and run it with system/output, but how to do it without an external file? br, jukka > -----Original Message----- > From: users-boun...@racket-lang.org > [mailto:users-boun...@racket-lang.org]On Behalf Of Manfred Lotz > Sent: 06 February 2011 15:43 > To: users@racket-lang.org > Subject: Re: [racket] Embedding multiline shell scipts > > > On Sun, 6 Feb 2011 15:12:49 +0200 > "Jukka Tuominen" > <jukka.tuomi...@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 > > _________________________________________________ > For list-related administrative tasks: > http://lists.racket-lang.org/listinfo/users _________________________________________________ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users