From: Jerry Brady <jerry.brady () faypwc ! com>
To: tru64-unix-managers
Subject: SUMMARY: how to log a user in inside a script
Date: Fri, 09 Mar 2001 18:35:44 +0000 [thread overview]
Message-ID: <98416313301753.tru64-unix-managers.marc@archive.invalid> (raw)
Thanks to
Ashok Bala,Larye Parkins,Bluejay Adametz and Pat O'Brien for the
suggestions. The one that fit my situation the best is from
Jim Fitzmaurice which is:
The login process is an interactive process and scripts can't handle
interactive processes very well. It has to wait for one command to finish
before it goes onto the next. So if you have an su in the scripts the
scripts will not continue until the su exits, and this is not what you want.
To do this you need "expect" it is a TCL/TK extension written especially
for handling interactive commands like su, rlogin, rsh, etc... All three are
open source (free), easy to compile even on Tru64, and once you start using
it, you'll wonder how you got along without it. To find it search for expect
under your favorite search engine. (yahoo, oingo, google, etc...)
Thanks to all
Jerry
reply other threads:[~2001-03-09 18:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox