• Execute a command in a different time frame

    From Janis Papanagnou@21:1/5 to All on Mon Oct 2 13:24:25 2023
    While looking for a 'find' substitute I stumbled across a program
    on my disk called 'warp' to execute a command in a different time
    frame. It was written by Glenn Fowler and I think it's a cool ksh
    script; you can not only shift but also stretch the time scale.
    Just want to share... - I put a copy at volatile.gridbug.de/warp
    Man page can be retrieved by: warp --man

    DESCRIPTION
    warp executes a dynamically linked command in a different time frame by
    intercepting time related system calls and modifying the times seen by
    command using the formula:
    time = time + warp + (time - base) * (factor - 1)
    ...

    (Note that it needs commands to be dynamically linked to work.)

    Enjoy.

    Janis

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Janis Papanagnou@21:1/5 to Javier on Mon Oct 2 15:39:30 2023
    On 02.10.2023 15:29, Javier wrote:
    Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote:
    DESCRIPTION
    warp executes a dynamically linked command in a different time frame by
    intercepting time related system calls and modifying the times seen by
    command using the formula:
    time = time + warp + (time - base) * (factor - 1)

    I guess it was popular at the time when propietary software came
    with licenses that only lasted for a month or a year. I remember
    myself in the 90s changing the system time clock in order to make
    some program work.

    Yes. But it has also several [legal] application usages. - I recall
    to have used it in a testing context where the time frame mattered,
    and in context where I had to slow down or speed up the time scale.
    (But don't recall the details, that was way back.)

    Janis

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Javier@21:1/5 to Janis Papanagnou on Mon Oct 2 13:29:41 2023
    Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote:
    DESCRIPTION
    warp executes a dynamically linked command in a different time frame by
    intercepting time related system calls and modifying the times seen by
    command using the formula:
    time = time + warp + (time - base) * (factor - 1)

    I guess it was popular at the time when propietary software came
    with licenses that only lasted for a month or a year. I remember
    myself in the 90s changing the system time clock in order to make
    some program work.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From hymie!@21:1/5 to who on Mon Oct 2 16:00:22 2023
    In our last episode, the evil Dr. Lacto had captured our hero,
    Janis Papanagnou <janis_papanagnou+ng@hotmail.com>, who said:
    While looking for a 'find' substitute I stumbled across a program
    on my disk called 'warp' to execute a command in a different time
    frame. It was written by Glenn Fowler and I think it's a cool ksh
    script; you can not only shift but also stretch the time scale.
    Just want to share... - I put a copy at volatile.gridbug.de/warp
    Man page can be retrieved by: warp --man

    Also https://github.com/wolfcw/libfaketime

    --hymie! http://nasalinux.net/~hymie hymie@nasalinux.net

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Keith Thompson@21:1/5 to hymie@nasalinux.net on Mon Oct 2 12:12:24 2023
    hymie! <hymie@nasalinux.net> writes:
    In our last episode, the evil Dr. Lacto had captured our hero,
    Janis Papanagnou <janis_papanagnou+ng@hotmail.com>, who said:
    While looking for a 'find' substitute I stumbled across a program
    on my disk called 'warp' to execute a command in a different time
    frame. It was written by Glenn Fowler and I think it's a cool ksh
    script; you can not only shift but also stretch the time scale.
    Just want to share... - I put a copy at volatile.gridbug.de/warp
    Man page can be retrieved by: warp --man

    Also https://github.com/wolfcw/libfaketime

    Which provides the "faketime" command, installable on Ubuntu and
    probably other systems:

    $ faketime 'jan 1 1970' /bin/date
    Thu Jan 1 12:00:00 AM PST 1970

    --
    Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
    Will write code for food.
    void Void(void) { Void(); } /* The recursive call of the void */

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)