From: jacobson@fred.isgs.uiuc.edu (Russ Jacobson)
Newsgroups: comp.sys.sun.admin
Subject: Got openwindows/macx to work!!!
Date: 30 Jul 92 15:24:44 GMT
Followup-To: comp.sys.sun.admin
Organization: Illinois State Geological Survey


Just to let you know I got the following which got MacX and Openwindows
working for me. And now am able to also do ARC programs with pulldown menus
just fine. Others on the net may find it of interest.  First I run an Xterm
session from MacX


Script to run an xterm sessin from which I do the following

 /sgs/openwin/bin/xterm  -ls -title "(host xterm" -sb -display  "(display"
-geometry 580x350+0+17

 Once I execute the first 3 lines I get an openwindows session in my rooted
Xterm window. I don't seem to get the Openwindow menus though with mouse
control and the settings that MacX allows for the other two buttons. But
for what I wanted to do that does not appear to be a problem. The xterm
window becomes a window on the Openwindows desktop by the way from where I
type my next commands. One crucial thing. When I typed Arc6 to run Arc 6.0
I found that the pathname to my arc libraries was now not running probably
because of the setenv command for the Openwindows libarry. I thought well
perhaps I needed another csh to to that (sorta off the top of my head don't
ask me why that came to me <grin>) I typed csh and the command window
(which had been the xterm window that became a window on the rooted
openwindows screen now was a csh and arc6 ran fine, no lockup like we
experienced. I then typed my program in arc to (an aml) to run my
editsession in arcedit and it ran (som message about limited colors) and
then put openwindow pulldown menus, and I am editing just fine so far with
no problems in arcedit!!!!. The only thing Is that I don't know yet what
will happen when I exit all this and try to quit openwindows since I don't
appear to get the openwindows pulldown menus. Will have to work on that I
guess. Probably need to execut a command to do it perhaps?

=============begin post from Lauri Valsta===================

Date: Tue, 28 Jul 92 08:42:24+030
From: valsta@salava.metla.fi (Lauri Valsta)
To: jacobson@fred.isgs.uiuc.edu
Subject: RE: MacX Window Types?
Cc: valsta@kuusi.metla.fi

Hi,

Here's a listing of my script with which I start olwm and two applications.
Before executing this script, I have made a connection from mac to sun
by invoking an xterm window in MacX.

setenv OPENWINHOME /usr/openwin
setenv LD_LIBRARY_PATH $OPENWINHOME/lib
$OPENWINHOME/bin/olwm -single &
toolwait mailtool -Wp 0 0 -Ws 585 206 -WP 26 698  -Wi
toolwait printtool -Wp 30 30 -Ws 416 433 -WP 107 701  -Wi  -P " PrintServer
20 Postscript"

It is important to run olwm in the -single mode.

Hope this helps.

===========end post by Lauri==========================

Hope this info is of help to others here

 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  Russ Jacobson                     INTERNET:jacobson@fred.isgs.uiuc.edu
  Illinois Geological Survey        FIDONET: 1:233/11 and 1:233/14        
  Champaign, IL 61820               Narnia BBS  217-384-3128 (Telefinder)  
                   
  217-244-2425                      Home Phone: 217-384-6983
 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=