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.