Newsgroups: comp.parallel.mpi
From: rdaoud@magnus.acs.ohio-state.edu (Raja B Daoud)
Subject: .cshrc/.profile setup (Was: LAM Problems)
Organization: Ohio Supercomputer Center
Date: 9 Jun 1995 00:25:14 GMT
Message-ID: <3r84da$qtc@charm.magnus.acs.ohio-state.edu>

For faster feedback, email LAM questions or bug reports to: lam@tbag.osc.edu

Greenup Cade <gree9031@buzzard.csrv.uidaho.edu> wrote:
>LAM 5.2 - Ohio Supercomputer Center
>
>hboot n0 (granite)...
>
	2	2	2	2	2	2	2	2	2	2	2	2	2	2	2	2	2	2	2	2
                                                                        
stty: : Can't assign requested address
>stty: : Can't assign requested address

You have terminal command(s) (e.g. stty) in your .cshrc or .profile.
These only work in interactive sessions, not when rsh is used (which
is how LAM starts the remote daemons).  You will need to bypass such
commands when using rsh.  One way to do it:

============ for .cshrc =============

# Put here shared (non-interactive) code (i.e. no tty stuff) such
# as setting PATH and other variables.

# Exit if not an interactive session.
if ($?USER == 0 || $?prompt == 0) exit

# Put here purely interactive code (e.g. stty).

============ for .profile ===========

# Put here shared (non-interactive) code (i.e. no tty stuff) such
# as setting PATH and other variables.

# Exit if not an interactive session.
tty -s
if [ $? -ne 0 ]; then return
fi

# Put here purely interactive code (e.g. stty).

=====================================

For speed and simplicity, I keep the top section small setting up
the min. # variables I need defined when using LAM.  All other stuff
(e.g. aliases, term,...) are placed after the "if".

Regards,

--Raja

-=-
Raja Daoud				raja@tbag.osc.edu
Ohio Supercomputer Center		http://www.osc.edu/lam.html
-=-
MPI users conference, June 22-23 @ Notre Dame

