Re: get timezone in a script?



Michael Tosch wrote:
In Solaris and HPUX it is environment variable TZ.
In Linux TZ exists, but is often not set.
There is a binary file /etc/localtime,
but how to get the timezone string out of it?

$s = `date +%Z` should do it.


Igmar

.



Relevant Pages

  • Re: get timezone in a script?
    ... Igmar Palsenberg wrote: ... In Linux TZ exists, ... There is a binary file /etc/localtime, ... but how to get the timezone string out of it? ...
    (comp.os.linux)
  • Re: PDF and EMAIL
    ... from the Linux Server (primarily RedHat 9.0 and RedHat ... We use uuencode to convert the pdf files into a binary ... and then email the binary file. ... system's install disks, but often is not installed automatically. ...
    (comp.databases.pick)
  • Binary File Red Hat Linux 7.1 using on Suse 9.0?
    ... i have a binary file who is compatible to Red Hat Linux 7.1 ... But not working on my Suse 9.0. ... He didn`t told me what kind of libraries... ...
    (alt.os.linux.suse)
  • Re: g77: 32-bit to 64-bit
    ... This is exactly what I get under 32-bit linux. ... I also did more testing of the binary file business 32 vs 64-bit and the ... compile under 32 bit the following program: ... write' error reading file' ...
    (comp.lang.fortran)
  • about int_malloc stalling
    ... Can the binary file that compiled on Redhat7.2 be uesd on Red Hat Enterprise ... Red Hat Enterprise Linux AS. ... main process forking child process, child process which be forked became ...
    (RedHat)