08-26-2019
8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi, I was debating if I should put this in the dummies or scripts section, I apologize in advance if I chose poorly.
Fairly new to Unix and BASH scripting but I thought I made it fairly well given my limited understanding. However, the output indicates that it's looping and I'm ending up with a... (5 Replies)
Discussion started by: gotreef
5 Replies
2. What is on Your Mind?
I was testing Fedora 16 mostly to check the new features. One thing that caught my eye as a systems admin is the systemd which is incorporated in Fedora for quite a while now.
From the first look of it, this appears more close to Solaris's SMF. With parallelization capabilities, advanced... (0 Replies)
Discussion started by: admin_xor
0 Replies
3. UNIX for Advanced & Expert Users
I am writing a program that must determine certain things about services. How can I, or my program, determine which services are started automatically when a given target becomes active. It is my impression that just looking in the target's .wants directory is inadequate because of other... (2 Replies)
Discussion started by: Brandon9000
2 Replies
4. Linux
I'm on Arch and I have a strange issue with systemctl hibernate command. It hibernates and resumes just fine (I have TuxOnIce), but in the last stage of resume, it completely shuts down my laptop screen, so I cannot see anything even though I know the system resumed just fined and the desktop is... (1 Reply)
Discussion started by: lockheed
1 Replies
5. UNIX for Advanced & Expert Users
Hallo
I don't know where to put my question so I put it here.
I want that systemd let run a script but only on shutdown or reboot
and before the system umount the mounted devices.
I look on google but only a little information is found and not working
Until no, I don't find an solution for... (1 Reply)
Discussion started by: thailand
1 Replies
6. SuSE
Hello All,
OS: openSUSE 13.1 (Bottle) (armv7hl)
uname -a: Linux linux.site 3.14.14-cubox-i #1 SMP Sat Sep 13 03:48:24 UTC 2014 armv7l armv7l armv7l GNU/Linux
So this is my first attempt at starting a service at boot with systemd. I've done this with inittab in the past,
but I'm having... (0 Replies)
Discussion started by: mrm5102
0 Replies
7. UNIX for Beginners Questions & Answers
journalctl --since "tomorrow"
By idea to show magazines from tomorrow. As it is illogical.
Tell me what is the essence of the team with the key tomorrow?
Code tags please (1 Reply)
Discussion started by: alekseev
1 Replies
8. UNIX for Advanced & Expert Users
Hi,
systemd cant start my script, but it work, at command prompt.
Code and execute at command prompt
#cat collector.sh
#!/bin/bash
case $1 in
start)
/home/postgres/scripts/pgwatch2/pgwatch2.sh
/home/postgres/scripts/pgwatch2/pgwatch2_UI.sh
;;
... (7 Replies)
Discussion started by: kvaikla
7 Replies
LEARN ABOUT DEBIAN
tspi_tpm_pcrextend
Tspi_TPM_PcrExtend(3) Library Functions Manual Tspi_TPM_PcrExtend(3)
TCG Software Stack Developer's Reference
NAME
Tspi_TPM_PcrExtend - extend a PCR register and optionally write the PCR event log.
SYNOPSIS
#include <tss/platform.h>
#include <tss/tcpa_defines.h>
#include <tss/tcpa_typedef.h>
#include <tss/tcpa_struct.h>
#include <tss/tss_typedef.h>
#include <tss/tss_structs.h>
#include <tss/tspi.h>
TSS_RESULT Tspi_TPM_PcrExtend(TSS_HTPM hTPM, UINT32 ulPcrIndex,
UINT32 ulPcrDataLength, BYTE* pbPcrData,
TSS_PCR_EVENT* pPcrEvent,
UINT32* pulPcrValueLength, BYTE** prgbPcrValue);
DESCRIPTION
Tspi_TPM_PcrExtend extends a PCR register and writes the PCR event log if one is supplied by the user.
PARAMETERS
hTPM
The hTPM parameter is used to specify the handle of the TPM object. The command to get the TPM to test itself will be sent here.
ulPcrIndex
The ulPcrIndex parameter is the index of the PCR to extend.
ulPcrDataLength
The ulPcrDataLength parameter is the length in bytes of the pbPcrData parameter.
pbPcrData
The pbPcrData parameter is a pointer to data to be hashed by the TSS, which will be used in the extend operation.
pPcrEvent
The pPcrEvent parameter is the TSS_PCR_EVENT structure to be passed to the TCS to record the extend event. If pPcrEvent is not NULL, the
application should fill out the members of the structure that it cares about.
pulPcrValueLength
The pulPcrValueLength parameter receives the length in bytes of the prgbPcrValue parameter.
prgbPcrValue
The prgbPcrValue receives a pointer to the memory block containing the PCR data after the extend operation.
RETURN CODES
Tspi_TPM_PcrExtend returns TSS_SUCCESS on success, otherwise one of the following values is returned:
TSS_E_INVALID_HANDLE
hTPM is not a valid handle.
TSS_E_INTERNAL_ERROR
An internal SW error has been detected.
TSS_E_BAD_PARAMETER
One or more parameters is bad.
CONFORMING TO
Tspi_TPM_PcrExtend conforms to the Trusted Computing Group Software Specification version 1.1 Golden
SEE ALSO
Tspi_TPM_PcrRead(3).
TSS 1.1 2004-05-25 Tspi_TPM_PcrExtend(3)