General discussion

Locked

Shell Variables!?

By Hedrickchris ·
How do you pass a C or Korn shell variable to an xterm from another machine? To give you and example:

WRKST% rsh SERV
SERV% setenv DISPLAY WRKST:0.0
SERV% echo $DISPLAY
SERV% WRKST:0.0
SERV% xterm &
SERV% echo $DISPLAY #Done on the xterm
#window.
SERV% SERV:0.0 #Output of the xterm
#when you echo the
#$DISPLAY variable in
#the xterm window. I
#need it to show
#WRKST:0.0
Why wouldn't the DISPLAY global variable take effect in the sub-xterm? Same thing happens for the Korn shell's export. So there must be something I'm overlooking.

This conversation is currently closed to new comments.

7 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Shell Variables!?

by ghislain.levesque In reply to Shell Variables!?

Try this when calling your xterm...

xterm -display $DISPLAY -sb &

Collapse -

Shell Variables!?

by Hedrickchris In reply to Shell Variables!?

The question was auto-closed by TechRepublic

Collapse -

Shell Variables!?

by olu95 In reply to Shell Variables!?

WRKST% rsh SERV

Collapse -

Shell Variables!?

by Hedrickchris In reply to Shell Variables!?

The question was auto-closed by TechRepublic

Collapse -

Shell Variables!?

by olu95 In reply to Shell Variables!?

WRKST% rsh SERV

Collapse -

Shell Variables!?

by Hedrickchris In reply to Shell Variables!?

The question was auto-closed by TechRepublic

Collapse -

Shell Variables!?

by Hedrickchris In reply to Shell Variables!?

This question was auto closed due to inactivity

Back to Linux Forum
7 total posts (Page 1 of 1)  

Related Discussions

Related Forums