Re: Adjust time by 30 seconds

From: Junaidi Sapari (Junaidi_at_TTSH.COM.SG)
Date: 01/14/04

  • Next message: Green, Simon: "Error log entries following SP Switch Efence"
    Date:         Wed, 14 Jan 2004 18:46:26 +0800
    To: aix-l@Princeton.EDU
    
    

    Yes that's the problem, my 4.3.3 doesn't have the "-a" option.

    # date -?
    date: Not a recognized flag: ?
    Usage: date [-n][-u] [mmddHHMM[[cc]yy]] [+"Field Descriptors"]
    Usage: date [-n][-u] [mmddHHMM[.SSyy]] [+"Field Descriptors"]

    # date -a -30
    date: Not a recognized flag: a
    Usage: date [-n][-u] [mmddHHMM[[cc]yy]] [+"Field Descriptors"]
    Usage: date [-n][-u] [mmddHHMM[.SSyy]] [+"Field Descriptors"]

    Is it not doable in aix 4.3.3?
    The best i can get is adjust a minute behind.

    # date
    Wed Jan 14 18:29:00 TAIST 2004

    # date 0114182804
    Wed Jan 14 18:28:01 TAIST 2004

    # date
    Wed Jan 14 18:28:03 TAIST 2004

    --Junaidi

    "Green, Simon" <Simon.Green@EU.ALTRIA.COM> on 01/14/2004 06:21:50 PM

    Please respond to IBM AIX Discussion List <aix-l@Princeton.EDU>

    To: aix-l@Princeton.EDU
    cc: (bcc: Junaidi/ISD/TTSH)

    Subject: Re: Adjust time by 30 seconds

    There's nothing in the man pages about the "-a" flag, but if you check the
    command usage, (do something like "date -?") it shows -a as an option. No
    explanation, but it looks like it's for adjusting the date backwards or
    forwards by a number of seconds.

    Usage: date [-n][-u] [mmddHHMM[[cc]yy]] [+Field Descriptors]
    Usage: date [-n][-u] [mmddHHMM[.SSyy]] [+Field Descriptors]
    Usage: date [-a] [[+|-]sss.fff]

    So maybe "date -a -30"

    That doesn't appear to be an option on my 4.3.3 systems: only on 5.1.

    --
    Simon Green
    Altria ITSC Europe Ltd
    AIX-L Archive at https://new-lists.princeton.edu/listserv/aix-l.html
    New to AIX? http://publib-b.boulder.ibm.com/redbooks.nsf/portals/UNIX
    N.B. Unsolicited email from vendors will not be appreciated.
    Please post all follow-ups to the list.
    > -----Original Message-----
    > From: Junaidi Sapari [mailto:Junaidi@TTSH.COM.SG]
    > Sent: 14 January 2004 07:34
    > To: aix-l@Princeton.EDU
    > Subject: Adjust time by 30 seconds
    >
    >
    > Hello ppl,
    > I am trying to set my aix4.3 time behind by 30seconds.
    > In linux i can do a `date -s 14:00:00` if the current date is 14:00:30
    > I saw a pseries command reference about adjusting time in
    > seconds by using the
    > "-a" flag.
    > I don't seem to have that flag available in aix4.3. Can
    > anyone help how can i
    > adjust the time by 30seconds behind.
    > Also if you guys can verify if there is a "-a" flag.
    

  • Next message: Green, Simon: "Error log entries following SP Switch Efence"

    Relevant Pages

    • Re: Adjust time by 30 seconds
      ... Altria ITSC Europe Ltd ... New to AIX? ... N.B. Unsolicited email from vendors will not be appreciated. ... > Subject: Re: Adjust time by 30 seconds ...
      (AIX-L)
    • Re: How to determine in shell if a certain program is running?
      ... >> determine in a Korn shell script if a certain program is still running? ... > need the 'w' flag whatever the manual says. ... As it tends to happen seldomly on AIX ... > A better way would be to record the pid and check on the basis of the pid. ...
      (comp.unix.shell)
    • Creating C++ loadable modules for AIX: ANSWER
      ... After much effort I was able to create C++ loadable modules for AIX ... use the runtime linker. ... program using the -brtl flag. ... CreateExportList does and passes the export list to the linker, ...
      (comp.unix.aix)
    • Solaris vs AIX - t flag
      ... first off, this is my first post, and I am a complete newbie ... We are just now moving over to AIX. ... to scan the message body for such things as addresses and the subject ... get the error message that of course, the -t flag is invalid. ...
      (comp.mail.sendmail)
    • Re: MAILX on AIX vs Solaris
      ... > am working in a project where we use a mailx script that uses variables ... We are just now moving over to AIX. ... > to scan the message body for such things as addresses and the subject ... > read through the MAN MAIL and can see no similar type of flag. ...
      (comp.unix.aix)