Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!ames!amdcad!sun!gorodish!guy From: guy%gorodish@Sun.COM (Guy Harris) Newsgroups: comp.unix.questions Subject: Re: stupid timezone questions Message-ID: <18458@sun.uucp> Date: Sun, 10-May-87 02:50:38 EDT Article-I.D.: sun.18458 Posted: Sun May 10 02:50:38 1987 Date-Received: Sun, 10-May-87 09:27:26 EDT References: <7312@brl-adm.ARPA> Sender: news@sun.uucp Lines: 30 > How does one . /etc/TIMEZONE incoming uucico in SYSV.2? so that > you can get correct time? Thanks! Well, you can try the following script: #! /bin/sh # # Yes, I know the above probably won't help on a vanilla # S5 system, but it can't hurt, and on some S5 systems # it *will* work. # . /etc/TIMEZONE # forcibly set TZ # # Get around Bourne shell bug, present in all vanilla # Bourne shells prior to the S5R3 one, that causes "$@" # to expand to "", rather than nothing, if there are no # arguments to the script. # if [ $# != 0 ] then exec /usr/lib/uucp/uucico "$@" else exec /usr/lib/uucp/uucico fi Call this script something like "/usr/lib/uucp/uucicoscript", and make that, rather than "/usr/lib/uucp/uucico", the login shell for UUCP accounts. UNIX permits a login shell to be a shell script, unless a vendor removed this capability in a state of confusion. This script will run "uucico" with the proper value of TZ.