Operating System - HP-UX
1834926 Members
2850 Online
110071 Solutions
New Discussion

Re: Undefined variable when I using remsh

 
SOLVED
Go to solution
Jan Studsgaard_2
Frequent Advisor

Undefined variable when I using remsh

I have a problem when I using remsh to another client. It seems that I have problem with setting variable om the remote machine.
I have to set some variables on the remote machine, but it comes up with this message "Display: undefined variable" even if I set the variables on the remote machine.
Can anyone tell me how I can solve this problem.
I attached the script file regarding the above problem.
Best Regards
Jan Studsgaard Jensen
3 REPLIES 3
Robin Wakefield
Honored Contributor
Solution

Re: Undefined variable when I using remsh

Hi,

Try "export DISPLAY" after setting it, otherwise it will not be available to the environment.

Rgds, Robin.
Santosh Nair_1
Honored Contributor

Re: Undefined variable when I using remsh

remsh uses csh by defaults. Where are you setting these environment variables? Try setting them in .cshrc. See the following thread for more details:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,11866,0x14f7660142b2d5118ff10090279cd0f9,00.html

-Santosh
Life is what's happening while you're busy making other plans
Darrell Allen
Honored Contributor

Re: Undefined variable when I using remsh

Hi all,

I could be wrong but it appears remsh uses the shell defined for the user in /etc/passwd on the remote system. I just ran a test and that's the result I got.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)