Differences

This shows you the differences between the selected revisions of the page.

scriptcommand_checksum 2014-12-19 scriptcommand_checksum 2026-09-01 (current)
Line 1: Line 1:
-====== checksum ====== +====== checksum command ====== 
-Calculates a checksum of a remote file. &beta_feature+Calculates a checksum of a remote file.
===== Syntax ===== ===== Syntax =====
Line 8: Line 8:
===== Remarks ===== ===== Remarks =====
-''alg'' is a name of a checksum algorithm to use. Use [[http://www.iana.org/assignments/hash-function-text-names/hash-function-text-names.xhtml|IANA name of algorithm]] or use a name of any proprietary algorithm the server supports (with SFTP protocol only). Commonly supported algorithms are ''sha-1'' and ''md5''.+''alg'' is a name of a checksum algorithm to use. Use [[https://www.iana.org/assignments/hash-function-text-names|IANA name of algorithm]] or use a name of any proprietary algorithm the server supports (with SFTP protocol only). Commonly supported algorithms are ''sha-1'' and ''md5''.
Supported with [[sftp|SFTP]] and [[ftp|FTP]] protocols, subject to support of [[protocols|respective protocol extension]]. Supported with [[sftp|SFTP]] and [[ftp|FTP]] protocols, subject to support of [[protocols|respective protocol extension]].
Line 35: Line 35:
<code powershell> <code powershell>
-Write-Host $session.CalculateFileChecksum("/home/martinp/public_html/index.html")+Write-Host ([System.BitConverter]::ToString($session.CalculateFileChecksum("/home/martinp/public_html/index.html")))
</code> </code>

Last modified: by martin