10-06-2004
I'm still thinking about this one!
Would any of you happen to know if the tar command ITSELF has some kind of checksum algorithm that is used when something is un-tarred?
This would be for Tru64 unix.
If the above is true then I really don't need to do a checksum routine on the tar operation, correct?
10 More Discussions You Might Find Interesting
1. SCO
Does anyone know the answer to this?
When I run "sum -r" on a file that I've down loaded from the sco website, the 1st set of numbers differs from the checksum on the download page but the
2nd set matches.
If I try to install the patch, I get errors.
Anyone has an answer? (3 Replies)
Discussion started by: jn5519
3 Replies
2. Solaris
Anyone can tell me the different between "cksum" and "sum" command on Solaris? I read the man pages but still not get it.
And how to display the md5 checksum for a file.
Thanks, (1 Reply)
Discussion started by: redstone
1 Replies
3. Shell Programming and Scripting
Dear experts,
I have an epoch time input file such as : -
1302451209564
1302483698948
1302485231072
1302490805383
1302519244700
1302492787481
1302505299145
1302506557022
1302532112140
1302501033105
1302511536485
1302512669550
I need the epoch time above to be converted into real... (4 Replies)
Discussion started by: aismann
4 Replies
4. Shell Programming and Scripting
Hi ALL,
I use solaris OS and SFTP to get/put files from remote server.I use the below command ,
sftp user@host<<EOF
cd "dir"
get --checksum "filename"
EOF
I am getting a strange error as " get --checksum INVALID paramter". It has been working succesfully since last 3 years but all of a... (1 Reply)
Discussion started by: mohanpadamata
1 Replies
5. IP Networking
Hello
I am communicating with two devices using my computer over UDP protocol. The application is running fine. When I monitored the UDP traffic using Wireshark software, I found that there were too many Checksum errors.
Please find attached the png file showing this error. I am about to... (0 Replies)
Discussion started by: AustinCann
0 Replies
6. Shell Programming and Scripting
Hi ,
I am trying to :wall: my head while scripting ..I am really new to this stuff , never did it before :( .
how to find cpu's system high time and user time high in a script??
thanks , help would be appreciated !
:) (9 Replies)
Discussion started by: sushwey
9 Replies
7. Shell Programming and Scripting
Hi
I have an ftp script which works fine when i execute through a test scheduler(UC4), but when i run it through the prod scheduler(UC4), it hungs indefinetely, when we cancel the job and re-run it it works perfectly fine. here is the code,, any idea why this is happening ????
... (1 Reply)
Discussion started by: selvankj
1 Replies
8. Shell Programming and Scripting
hi all i want a script to FTP a file and should generate a quality checksum file
means when I FTP a file from one server to another server it should generate a QC file which should contain timestamp,no.of records in that file
Thanks in advance
saikumar (3 Replies)
Discussion started by: hemanthsaikumar
3 Replies
9. Shell Programming and Scripting
is there a way to get a script to do a checksum on itself?
something like this:
#!/bin/sh
myexpectedsig=$(cksum $0 | awk '{print $1}')
if ; then
exit
else
who
uptime
date
fi
im looking for something that would always represent the running script, which is why im... (6 Replies)
Discussion started by: SkySmart
6 Replies
10. UNIX for Beginners Questions & Answers
Hi Folks,
I need a UNIX script which will copy files(Table wise) from source directory to destination directory (Under table directory) and also creates 2 additional files after getting copied to destination directory with extension .pdy and .ldy , . pdy file will be zero byte file should get... (4 Replies)
Discussion started by: Nicks1412
4 Replies
LEARN ABOUT CENTOS
th_set_group
th_set_from_stat(3) C Library Calls th_set_from_stat(3)
NAME
th_set_from_stat, th_finish, th_set_type, th_set_path, th_set_link, th_set_device, th_set_user, th_set_group, th_set_mode, th_set_mtime,
th_set_size - set fields of a tar file header
SYNOPSIS
#include <libtar.h>
void th_set_from_stat(TAR *t, struct stat *s);
void th_set_type(TAR *t, mode_t mode);
void th_set_path(TAR *t, char *pathname);
void th_set_link(TAR *t, char *linkname);
void th_set_device(TAR *t, dev_t device);
void th_set_user(TAR *t, uid_t uid);
void th_set_group(TAR *t, gid_t gid);
void th_set_mode(TAR *t, mode_t mode);
void th_set_mtime(TAR *t, time_t fmtime);
void th_set_size(TAR *t, off_t fsize);
void th_finish(TAR *t);
VERSION
This man page documents version 1.2 of libtar.
DESCRIPTION
The th_set_*() functions each set an individual field of the current tar header associated with the TAR handle t. The th_set_user() and
th_set_group() functions set both the numeric user/group ID fields and the user/group name text fields. The other functions set only the
field that they refer to.
The th_set_from_stat() function uses the other th_set_*() functions to set all of the fields at once, based on the data passed to it in the
argument s.
The th_finish() function sets the appropriate constants for the magic and version fields. It then calculates the header checksum and fills
in the checksum field.
SEE ALSO
lstat(2)
University of Illinois Jan 2001 th_set_from_stat(3)