This is my worst nightmare in recent years!!!
I spent two days writing a proposal due tomorrow, ftp'ed the Word doc to a Unix machine in ASCII mode (i forgot to turn BIN on). Then I was trying to help a colleague download it and I accidently download the ASCII file back to the same dir on my... (1 Reply)
HI
I need to validate a file in UNIX to contain only ascii characters.This is a production issue.Can anyone help with the command?
Thanks
Subbarao (1 Reply)
Hello,
How to i determine via ftp commandline if files on ftp server is ascii or binary files. Like every other comon windows ftp program does it automatically.
regards
Thomas (5 Replies)
Hi,
I am having unix script that passes argument value to script. The script finds the file and keeps it in a directory.
I need to ftp this file to another server. Please guide me how to acieve this.
I am able to connect to ftp server but i am not able to use the unix argument in the ftp... (0 Replies)
Hi,
I want to compare the size of the files in my local machine before ftp ing it and the size of the file in the remote machine i.e after ftping . SO that the ftp is successful . (3 Replies)
hi
i am receiving a file from one system , i have to verify the format of the file data i.e whether the data is in acii format or binary format,
please help
thanks in advance
satya (1 Reply)
The system is a SunFire V440 running SunOS 5.10
About once every 3-4 weeks, the system will reboot into single user mode on its own, and then I run svcs -xv, the filesystem service and dependent services will be disabled due to the metadisk file system being corrupted.
The I've been doing... (2 Replies)
Hi,
I need to have a shell script that FTP's a zipped file from a particular location.
I have some path and inside that path i will have folders like x_timestamp and inside x_timestamp there may many folders based upon events like y_111,y_222,y_333.Inside each event there will be another... (3 Replies)
So, i have this requirement where i need to check the file format, whether it's EBCDIC or ASCII, and based on format retrieve the information from that file:
my file is:
file1.txt-->this ebcdic file
file2.txt-->ascii file
i tried below code:
file=file1.txt
type="`file $file`"
i get... (7 Replies)
Discussion started by: gnnsprapa
7 Replies
LEARN ABOUT REDHAT
crc32
crc32(n) Cyclic Redundancy Check (crc32) crc32(n)
NAME
crc32 - Perform a 32bit Cyclic Redundancy Check
SYNOPSIS
package require Tcl 8.2
package require crc32 ?1.0?
::crc::crc32 ?-format format? ?-seed value? ?-implementation procname? message
::crc::crc32 ?-format format? ?-seed value? ?-implementation procname? -filename file
DESCRIPTION
This package provides a Tcl-only implementation of the CRC-32 algorithm based upon information provided at http://www.naaccr.org/stan-
dard/crc32/document.html If the Trf package is available then the crc-zlib command is used to perform the calculation.
COMMANDS
::crc::crc32 ?-format format? ?-seed value? ?-implementation procname? message
::crc::crc32 ?-format format? ?-seed value? ?-implementation procname? -filename file
The command takes string data or a file name and returns a checksum value calculated using the CRC-32 algorithm. The result is for-
matted using the format(n) specifier provided or as an unsigned integer (%u) by default.
OPTIONS -filename name
Return a checksum for the file contents instead of for parameter data.
-format string
Return the checksum using an alternative format template.
-seed value
Select an alternative seed value for the CRC calculation. The default is 0xffffffff. This can be useful for calculating the CRC for
data structures without first converting the whole structure into a string. The CRC of the previous member can be used as the seed
for calculating the CRC of the next member.
Note that as the Trf command crc-zlib cannot accept a seed value, use of this option will force the use of the Tcl only implementa-
tion.
-implementation procname
This hook is provided to allow users to provide their own implementation (perhaps a C compiled extension) or to explicitly request
use of the Tcl only implementation when Trf is installed (by setting -implementation crc::Crc32_tcl. The procedure specfied is
called with two parameters. The first is the data to be checksummed and the second is the seed value. A 32bit integer is expected as
the result.
EXAMPLES
% crc::crc32 "Hello, World!"
3964322768
% crc::crc32 -format 0x%X "Hello, World!"
0xEC4AC3D0
% crc::crc32 -file crc32.tcl
483919716
SEE ALSO
sum(n), cksum(n)
AUTHORS
Pat Thoyts
KEYWORDS
cksum, checksum, crc, crc32, cyclic redundancy check, data integrity, security
crc 1.0 crc32(n)