[HPADM] timezone issue

From: Harm Ensing (ensin001_at_hdxh0e.unix.telecom.ptt.nl)
Date: 04/07/05

  • Next message: Jeff Lightner: "[HPADM] SUMMARY: hppi / jetadmin transferqueue not working"
    To: hpux-admin@dutchworks.nl
    Date: Thu, 7 Apr 2005 13:20:28 +0200 (METDST)
    
    

    Hello,

    I did a quick scan on the HP-UX admin website but could not find anything usefull.

    The problem we are experiencing is that when executing a remote command
    through ssh does not import /etc/profile so evironment variables like TZ
    are not set.

    When I run the following command on two different systems I get :

    # ssh system1 "echo \"TZ=$TZ\"; /usr/sbin/kmtune|grep timezone; date"
    TZ=
    timezone -60 - (-60)
    Thu Apr 7 06:54:31 EDT 2005

    # ssh system2 "echo \"TZ=$TZ\"; /usr/sbin/kmtune|grep timezone; date"
    TZ=
    timezone 420 - 420
    Thu Apr 7 12:54:27 METDST 2005

    So, it appears that the default timezone is different.
    Question: could this have to do the timezone kernel-setting which is obviously different on both systems?

    Note:
    any documentation about the link between this kernel setting (other than the man page) is welcome!
    For instance, I cannot figure out what the link could be between -60 and EDT on the one hand and 420 and
    METDST on the other.

    I am aware of the fact that we could force importing /etc/profile in the script:
    # ssh system2 ". /etc/profile; echo \"TZ=$TZ\"; /usr/sbin/kmtune|grep timezone; date"

    What I would like to know is: is there a way to force ssh to import /etc/profile when executing a command
    other than the way I mentioned above.

    Any help/info is welcome.

    -Harm-

    --
                 ---> Please post QUESTIONS and SUMMARIES only!! <---
            To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
           Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
     
     Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
                http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)
    

  • Next message: Jeff Lightner: "[HPADM] SUMMARY: hppi / jetadmin transferqueue not working"

    Relevant Pages

    • Re: Problems installing XP SP2!
      ... package source directory and make sure the that XPSPS2sms.exe file exists in ... in your SMS Program command line property. ... > Executing program as a script ... > OnOptionalExecutionRequests failed for program Automated upgrade from XP ...
      (microsoft.public.sms.admin)
    • Re: Windows update error 0x80242008
      ... 2.219: Hotfix started with following command line: /si ... Unexpected Error While Executing Line 1 ( ... Test.IE7InstallBlock.Section) of PreRequisite ...
      (microsoft.public.windowsupdate)
    • RE: Open Form Code
      ... I've generally found that if you issue a DoEvents command after opening the ... I set that form's VISIBLE property to FALSE. ... VISIBLE property to TRUE immediately prior to executing the code. ...
      (microsoft.public.access.formscoding)
    • Re: Problem with Sql Server
      ... The sproc returns data ... > - Executing the command as an sproc by passing the sproc name and the ... > - Executing the command using CommandType.Text and passing the same string ... > - Running both web server and db server on same machine. ...
      (microsoft.public.dotnet.framework.adonet)
    • Re: commands not waiting, /wait not helping
      ... > When executing an application that is a 32-bit GUI application, ... > the command prompt. ... > having a exe pathname with embedded spaces that needed to be in quotes. ... and wise needs to see switches before the scriptname. ...
      (microsoft.public.win32.programmer.tools)