Mark Jonckheere wrote:
>
> Het zou kunnen komen door environment variabelen die anders staan als
> cron runt dan bij interactief gebruik.
>
> Het is bekend dat Telnet een lastige klant is om op een niet
> interactieve manier ge^H^Hmisbruikt te worden.
>
> Daarom bestaat er een tool zoals expect (zie http://expect.nist.gov/ )

Op zoek naar meer informatie over hoe zo iets met expect moet geschreven
worden ben ik op de volgende tekst gestoten die ik u niet wil onthouden.

De volgende twee paragrafen zijn letterlijk overgenomen uit het boek
"Exploring Expect" van Don Libes, (O'Reilly & Associates, Inc.)
ISBN 1-56592-090-2 blz. 373, tweede paragraaf.

= If the process has been started from _cron_, there are yet more
= caveats. By default _cron_ does not use your environment, so you
= may need to force _cron_ to use it or perhaps explicitly initialize
= parts of your environment. For example, the default path supplied by
= _cron_ usually includes only _/bin_ and _/usr/bin_. This is almost
= always insufficient.
=
= Be prepared for all sorts of strange things to happen in the default
= _cron_ environment. For example, many programs (e.g., _rn_, _telnet_)
= crash or hang if the _TERM_ environment variable is not set. This is
= a problem under _cron_, which does not define _TERM_. Thus, you must
= set it explicitly--to what type is usually irrelevant. It just has
= to be set to something!

Mark.