Keresés

Új hozzászólás Aktív témák

  • Mr Dini

    addikt

    LOGOUT blog

    válasz Mr Dini #24292 üzenetére

    Sorry, lejárt a szerkesztési idóm...

    Ez mi a fail?:

    root@TomatoUSB:/tmp/home/root# export LD_LIBRARY_PATH=
    root@TomatoUSB:/tmp/home/root# sg_raw
    sg_raw: can't load library 'libc.so.1'
    root@TomatoUSB:/tmp/home/root# export LD_LIBRARY_PATH=/opt/lib
    root@TomatoUSB:/tmp/home/root# sg_raw
    No device specified
    Usage: sg_raw [OPTION]* DEVICE CDB0 CDB1 ...

    Options:
    -b, --binary Dump data in binary form, even when writing to stdout
    -h, --help Show this message and exit
    -i, --infile=IFILE Read data to send from IFILE (default: stdin)
    -k, --skip=LEN Skip the first LEN bytes when reading data to send
    -n, --nosense Don't display sense information
    -o, --outfile=OFILE Write binary data to OFILE (def: hexdump to stdout)
    -r, --request=RLEN Request up to RLEN bytes of data (data-in)
    -R, --readonly Open DEVICE read-only (default: read-write)
    -s, --send=SLEN Send SLEN bytes of data (data-out)
    -t, --timeout=SEC Timeout in seconds (default: 20)
    -v, --verbose Increase verbosity
    -V, --version Show version information and exit

    Between 6 and 256 command bytes (two hex digits each) can be specified
    and will be sent to DEVICE. Lengths RLEN and SLEN are decimal by
    default. Bidirectional commands accepted.

    Simple example: Perform INQUIRY on /dev/sg0:
    sg_raw -r 1k /dev/sg0 12 00 00 00 60 00

    :D

    Hogy lehetne orvosolni a cuccot (tehát, hogy ne kelljen LD_LIBRARY_PATH-t állítani)?

    :R

Új hozzászólás Aktív témák