Problems restraining read command to 32 bits -perl
Hey everybody,
I'm having difficulty using the read command to perform a checksum operation. Whenever I print the final checksum, the result always returns FFFFFFFF, and I know thats not the checksum.
Basically, I'm trying to read a binary file 32 bits at a time by unpacking them into decimal and then adding them. Furthermore, I am trying to use the $checksum & 0xFFFFFFFFF command to restrain the checksum to 32 bits. Also, just ignore the commented out stuff, I was using it for my own testing. Any assistance would be greatly appreciated.
Hello all,
I was wondering if anyone can tell me how to change 24 bits depth display to 8 bits depth display for Sun Ultra1, running Solaris 8? THANKS in advance. I think that the command is ffbconfig, but it has nothing about depth. (4 Replies)
Hello guys, i need your help, let me try to explain what i need:
I have a file (plain text) for example with 500 lines, i need to read only from the line 200 until the end of file, and serch the word 'ERROR' onli between lines 200 and 500, that have sence?
Thanx for your help. (7 Replies)
Hello there:
I know that exist a procedure to convert an OS using 32bits kernel to 64 bits kernel. But, exist a procedure to convert an OS using 64bits to 32 bits kernel?
Please help me.
Regards. (2 Replies)
Solaris 10
Korn shell ksh,
Hi there,
I have figured out to get yesterday's date which is using the below command:
TZ=GMT+24; date +%d-%b-%Y to get the format of 30-Sep-2008 and
TZ=GMT+24; date +%Y%m%d to get the format of 20080930.
I need this two format. In my perl script below I need... (4 Replies)
people i have a problem i have a 32 bits sparc processor, and solaris 64 bits processor, i install a oracle data base 64 bits, but my oracle will not run because my processor is from 32 bits this is ok??, i know if i have x86 i cannot install a 64 bits operatin system in a 32 bits processor.
... (0 Replies)
Hi All,
How I will read the output of the tail -F command in perl.
I have text file with below contains
file1.txt
1
2
3
4
$running=1;
sub openLog($)
{
(my $log) = @_; (1 Reply)
Ten movies have been nominated as best motion picture by the International Press Academy, presentation of the 2012 Satellite Awards will be held on 16th December at Los Angeles, CA.
Place your bits here on one of the below nominated movie of your choice:-
Argo
... (0 Replies)
Hi,
I am facing issues with the below:
I have a lookup file say lookup.lkp.This lookup.lkp file contains strings delimited by comma(,).
Now i want to read this command from file and execute it.
So my code below is :
Contents in the lookup.lkp file is :
c_e,m,a,`cd $BOX | ls cef_*|tail... (7 Replies)
Discussion started by: vital_parsley
7 Replies
LEARN ABOUT DEBIAN
lfc_setfsizeg
LFC_SETFSIZEG(3) LFC Library Functions LFC_SETFSIZEG(3)NAME
lfc_setfsizeg - set filesize for a regular file having the given GUID; set also last modification time to the current time
SYNOPSIS
#include <sys/types.h>
#include "lfc_api.h"
int lfc_setfsizeg (const char *guid, u_signed64 filesize, const char *csumtype, char *csumvalue)
DESCRIPTION
lfc_setfsizeg sets the filesize for a regular file having the given GUID; set also the last modification time to the current time. This
function should only be called by the stager after the last write operation has been performed on the file. The file is identified by its
guid.
guid specifies the Grid Unique IDentifier.
csumtype
specifies the type of checksum. Valid types are:
CS standard 32 bits checksum
AD Adler 32 bits checksum
MD MD5 128 bits checksum
RETURN VALUE
This routine returns 0 if the operation was successful or -1 if the operation failed. In the latter case, serrno is set appropriately.
ERRORS
EFAULT guid is a NULL pointer.
EINVAL The length of the guid exceeds CA_MAXGUIDLEN or the length of the csumtype exceeds 2 or csumtype is an unknown type or the
length of the csumvalue exceeds 32.
SENOSHOST Host unknown.
SENOSSERV Service unknown.
SECOMERR Communication error.
ENSNACT Name server is not running or is being shutdown.
SEE ALSO Castor_limits(4), lfc_statg(3)LFC $Date: 2008/09/19 11:32:26 $ LFC_SETFSIZEG(3)