Does anyone have the exec for date?

Forum Forums Freesat HD FOXSAT HDR Does anyone have the exec for date?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #12205
    Anonymous
    Inactive

    Being a bit lazy – I don’t really want to learn how to recompile busybox source. I am playing with a script and need to know the date.

    #26907
    raydon
    Participant

    REPASSAC – 3 hours ago  » 

    Being a bit lazy – I don’t really want to learn how to recompile busybox source. I am playing with a script and need to know the date.

    Hi David,

    1. Download the precompiled mips binary from http://www.busybox.net/downloads/binaries/1.18.4/busybox-mips

    2. Using FTP, copy it to the /opt/bin directory on the HDR and rename it to busybox.

    3. Create a symlink for the date command by opening a telnet session on the HDR and entering:

    ln -s /opt/bin/busybox /opt/bin/date

    Now when you type

    date –help

    you should see:

    BusyBox v1.18.4 (2011-04-04 19:31:40 CDT) multi-call binary.

    Usage: date [OPTIONS] [+FMT] [TIME]

    Display time (using +FMT), or set time

    Options:

    [-s,–set] TIME Set time to TIME

    -u,–utc Work in UTC (don’t convert to local time)

    -R,–rfc-2822 Output RFC-2822 compliant date string

    -I[SPEC] Output ISO-8601 compliant date string

    SPEC=’date’ (default) for date only,

    ‘hours’, ‘minutes’, or ‘seconds’ for date and

    time to the indicated precision

    -r,–reference FILE Display last modification time of FILE

    -d,–date TIME Display TIME, not ‘now’

    -D FMT Use FMT for -d TIME conversion

    Recognized TIME formats:

    hh:mm[:ss]

    [YYYY.]MM.DD-hh:mm[:ss]

    YYYY-MM-DD hh:mm[:ss]

    [[[[[YY]YY]MM]DD]hh]mm[.ss]

    Unfortunately, the date still needs to be initialised by ‘settop’ before the date function will return a valid value.

    You may also want to try:

    compare:

    ln -s /opt/bin/busybox /opt/bin/cmp

    and

    difference:

    ln -s /opt/bin/busybox /opt/bin/diff

    Any other command you may need, you can create a symlink for by using the same method outlined above.

    Just enter

    busybox

    for a full list of the commands you already have

    and

    /opt/bin/busybox

    for the commands that are available.

    regards

    raydon

    #26908
    Anonymous
    Inactive

    Many thanks raydon. :-)

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

The inner genius!