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
Received on Fri Mar 09 2001 - 18:39:28 NZDT