1836595 Members
2492 Online
110102 Solutions
New Discussion

Re: remsh, date, TZ

 
Thamm
Occasional Advisor

remsh, date, TZ

Hi,
I have problem with remsh and Timezone-Variable:
This happens:
remsh remotemachine date
Thu Apr 4 13:48:54 MET 2002

remsh remotemachine echo $TZ
MET-1METDST
remsh remotemachine echo /etc/TIMEZONE
TZ=MET-1METDST
export TZ

After login on the remotemachine via telnet
date
Thu Apr 4 14:49:30 METDST 2002
echo $TZ
MET-1METDST

What is the reason for the different times?
Thanks in advance.
ST.
1 REPLY 1
Steve Steel
Honored Contributor

Re: remsh, date, TZ

Hi


Something like this

remshd is started from inetd with the
environment of inetd, ensure that the proper
time zone is set in the $TZ variable when inetd starts.
Once the variable is set correctly, kill and restart inetd in order for it and it's children to have the proper timezone.



Steve Steel

If you want truly to understand something, try to change it. (Kurt Lewin)