Too straight forward Jim I want that last fs block even if the fs has a silly 2 byte block size
For extra fun you can add an fsync() call after the last write call. Could lock up your system for a bit ... depending on your RAID type and implementation
i want to write a server process in the sco unix 505.The server process will fork multi-child-processes when it first starts.once parent process listen and accept any connect from client,it will transfer the connected sockfd to any free child process and child process will read client request from... (4 Replies)
Hey people i'm very new to linux. I just put a extra 200 gig maxtor HD in my computer. Linux can tell it's there...but it says it cant mount it. How do i mount it manually?
thanks,
John (2 Replies)
Hi,
I am having an input file which contains a group of words,if one specific word comes which goes to next line.
example:
input file===>
shashi country= india comapny= none shashi shashi company= NONE shashi=my name
output===>
shashi country= india comapny= none
shashi
shashi... (6 Replies)
Hello..
I want to take back up from server to local machine and i dont know how to do it using cron and sftp . I can do it by manually typing password in the terminal and taking the back up. How to create a 'backup.sh' file for doing all the back up process and shut down automatically after... (1 Reply)
I need help with the following.
1) Write a program in any language that takes a single integer array parameter and returns the decimal average of the input values.
2) Write a program, in any language, that prints the integers from 1 to 10, along with a cumulative sum of the integers printed... (1 Reply)
I am hoping someone can give me a good free web resource for writing code to compile a binary executable. I am getting fairly decent at writing shell script, are the .f files just shell scripts? Also, I don't know where to begin on the makefiles. The reason I am curious is because I have been... (6 Replies)
I'm planning on using two Linux OS's alongside win 7, one being Fedora KDE 30.
So to prepare for the install I partitioned my harddrive using the Minitool Partition Wizard. I have a 320 GB hdd, so I nade one partiotion about 80 GB forFedora and then left about 70 GB as unused, to later... (2 Replies)
Discussion started by: AndersA
2 Replies
LEARN ABOUT CENTOS
tpm_nvwrite
tpm_nvwrite(8)tpm_nvwrite(8)NAME
tpm_nvwrite
SYNOPSIS
tpm_nvwrite [OPTIONS]
DESCRIPTION
tpm_nvwrite writes data to an NVRAM area. The user must provide the index of the NVRAM area as well as the data to write into the NVRAM
area. Optionally an offset into the NVRAM area can be given where the writing of the data is to start. Similarly the use may provide the
number of bytes to write into the NVRAM area. Some NVRAM areas only allow write sizes of zero, i.e., NVRAM area index 0. If the NVRAM area
has permission bits set that require owner or NVRAM area authentication, then the password must be provided via the password option.
The following options are supported:
-h, --help
Display command usage info.
-v, --version
Display command version info.
-l, --log [none|error|info|debug]
Set logging level.
-u, --unicode
Use TSS UNICODE encoding for passwords to comply with applications using TSS popup boxes
-z, --well-known
Use a secret of all zeros (20 bytes of zeros) as either the NVRAM area or owner secret.
-p, --password
Depending on what type of authentication is required for the NVRAM area, this must either be the NVRAM area or owner password.
A password may be directly provided for example by using '--password=password' or -ppassword. If no password is provided then the
program will prompt the user for the password.
-i, --index (optional parameter)
The index of the NVRAM area. The parameter may either be a decimal number or a hexadecimal number starting with '0x'.
-s, --size
The number of bytes to write to the NVRAM area. This parameter may be used to truncating the data that are for example read from a
file. The parameter may either be a decimal number or a hexadecimal number starting with '0x'.
-n, --offset (optional parameter)
The offset into the NVRAM area where to start writing. The parameter may either be a decimal number or a hexadecimal number starting
with '0x'.
-f, --filename (optional parameter)
The name of a file from which to read data and copy them into the NVRAM area.
-d, --data (optional parameter)
The data to write into the NVRAM area passed in the command line.
-m, --fill-value (optional parameter)
The byte to fill the NVRAM area with.
SEE ALSO tpm_nvdefine(8), tpm_nvinfo(8), tpm_nvread(8), tpm_nvrelease(8)REPORTING BUGS
Report bugs to <trousers-users@lists.sourceforge.net>
TPM Management 2011-07-11 tpm_nvwrite(8)