Checksum: Linux problem

Vítáme všechny návrhy na nové funkce a vylepšení programu Altap Salamander. Pro každý návrh prosím vytvořte samostatný příspěvek.
bckp
Posts: 2
Joined: 13 Jan 2010, 10:41

Checksum: Linux problem

Post by bckp »

Dobrý den

našel jsem chybu v pluginu checksum, když vytvořím kontrolní součet pro jeden soubor, na konec souboru je přidán enter, ale ten tam nepatří, proto v linuxu ověření neproběhne korektně, zahlásí chybu souboru, pokud enter odstraním, je všechno OK.
User avatar
Ether
Posts: 1471
Joined: 10 May 2007, 16:08
Location: Czech Republic
Contact:

Re: Checksum: Linux problem

Post by Ether »

Jaký program (příkaz) používáte na Linuxu?
Ελληνικά rulez.
therube
Posts: 674
Joined: 14 Dec 2006, 06:22

Re: Checksum: Linux problem

Post by therube »

md5sum několik možností pro nastavení režimu čtení.

-b = binární
-t = text

Budu předpokládat, že Salamander Kontrolní vždy pracuje v binární.
(md5sum výchozí hodnota je v binárním systému Windows.)

Md5sum, pokud byly použity v textovém režimu (v Linuxu), existuje možnost rozdíl.

Takže síla md5sum použít binární režim.

md5sum-b <soubor>

Viz md5sum - help

Code: Select all

E:\RUBEN>md5sum --help
Usage: c:/bin/unix/md5sum.exe [OPTION] [FILE]...
  or:  c:/bin/unix/md5sum.exe [OPTION] --check [FILE]
Print or check MD5 checksums.
With no FILE, or when FILE is -, read standard input.

  -b, --binary            read files in binary mode (default on DOS/Windows)
  -c, --check             check MD5 sums against given list
  -t, --text              read files in text mode (default)

The following two options are useful only when verifying checksums:
      --status            don't output anything, status code shows success
  -w, --warn              warn about improperly formated MD5 checksum lines

      --help              display this help and exit
      --version           output version information and exit

The sums are computed as described in RFC 1321.  When checking, the input
should be a former output of this program.  The default mode is to print
a line with checksum, a character indicating type (`*' for binary, ` ' for
text), and name for each FILE.
WinXP Pro SP3 or Win7 x86 | SS 2.54
Post Reply