#!/bin/sh
# @(#) $RCSfile: SESSION,v $: $Revision: #12 $, $Date: 2006/06/26 $ 
# @(#) Copyright (c), 1987, 2006 Insightful Corp.  All rights reserved.

#  SESSION script
#
#  This script is employed by the Java GUI under client/server operation
#  to interface between the SplusSessionFactory and the SplusAS invocation
#  script.  It should not be employed in any other context.

SHOME=$1
export SHOME
S_WORKING_DIR=$2
export S_WORKING_DIR
S_DISPLAY_SET=$3
export S_DISPLAY_SET
S_REMOTE_SESSION_ID=$4
export S_REMOTE_SESSION_ID
S_HELP_HOST=$5
export S_HELP_HOST
S_RMI_PORT=$6
export S_RMI_PORT
S_USE_SSL=$7
export S_USE_SSL
S_SSL_ACCESS=$8
export S_SSL_ACCESS
# shift past special args so remainder of args get passed to SERVER -session
shift 8

"$SHOME"/cmd/unix2 "$SHOME"/cmd/Splus SERVER -session "$@"
