From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <98416313301753.tru64-unix-managers.marc@archive.invalid> From: Jerry Brady Date: Fri, 09 Mar 2001 18:35:44 +0000 To: tru64-unix-managers Subject: SUMMARY: how to log a user in inside a script X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=98416313301753 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