Changed the mechanism for this code since occasional hangs did occur. The code writes a csh script (assumes that /bin/csh exists) to handle the checkout logic.  The expect script simply answer's the password prompt (also assumes ssh is in your path) and waits for the csh termination code implanted in the script.  The script is what is now spawned instead of a raw shell.  Could be modified to handle 3 arguments but not for now.
Changed the mechanism for this code since occasional hangs did occur.
The code writes a csh script (assumes that /bin/csh exists) to handle
the checkout logic.  The expect script simply answer's the password
prompt (also assumes ssh is in your path) and waits for the csh
termination code implanted in the script.  The script is what is now
spawned instead of a raw shell.  Could be modified to handle 3
arguments but not for now.

This modification no longer displays the password in the query or
utilization of the password.

Note that the definition of the "release" variable must be manually
changed once in any release tree (or any specific tag :)



rangsimanketkaew/NWChem