What I am supposed to do is creat a menu with the following
Find a song
Find a album
Sort by artist
Delete a song
Add a new song
Quit
Now the file with the song information is database
Here is what I have so far
#!/bin/bash
#=================================================
#Script Name:... (1 Reply)
All,
I have a list of over 400 users that need certain directories created. These will be created in /users/$username on a system and I need a directory called chess under these directories that I create.
Instead of me manually adding each one (mkdir /users/user1, mkdir /users/user1/chess)... (1 Reply)
a) Total number of words in the file.
b) Total number of different words in the file.
How can I use the translate and/or unique commands to accomplish this (4 Replies)
Hi everybody :( :confused: :D,
I need someone to help me! I have a file with 4 colunms and I would like to transform only the 4th colunm by multiplying this by a constant value (i.e 0.3047). I'm a new one using/creating basic scripts and I'm using linux redhat.
The file has the following... (1 Reply)
Lets say I wanted to create a script that would show what people are doing on my machine using the w command and refresh in about 6 seconds. What would be the easiest way to do this? I pretty much want the script to loop until I stop it.
I'm using the BASH shell by the way.
Help is appreciated.... (1 Reply)
Hi guys,
I think this is a basic question. I'm not very familiar with this.
I'm trying to round a number up and round a number down. From what I have read this can be done using POSIX. I have tried to to use this, but i'm getting errors:
sub findGridBounds($$$%)
{
use POSIX;
... (0 Replies)
Here is the script I wrote... Pls. help.
#!/bin/ksh
for SERVER in
NEWSNYD403P
NEWSNYD404P
SNEWSNYD601P
SNEWSNYD602P
SNEWSDNY603P
SNEWSNYD604P
do
/usr/bin/scp "/home/sam/bash.tar root@$SERVER":/tmp
done
Error msg I get:
./scp_script.sh: syntax error at line 3:... (2 Replies)
Hey everyone, just now joined because I didn't want to go onto Ubuntu forums and start asking about how to write shell scripts. Seems like this is a pretty active forum for exactly what I need.
I'm trying to modify a shell script I found online, the end goal is to have it find all files in the... (9 Replies)
Discussion started by: mozzles
9 Replies
LEARN ABOUT CENTOS
tspi_decodeber_tssblob
Tspi_DecodeBER_TssBlob(3) TCG Software Stack Developer's Reference Tspi_DecodeBER_TssBlob(3)NAME
Tspi_DecodeBER_TssBlob - unwraps a BER-encoded TSS blob.
SYNOPSIS
#include <tss/tspi.h>
TSS_RESULT Tspi_DecodeBER_TssBlob(UINT32 berBlobSize, BYTE* berBlob,
UINT32* blobType, UINT32* rawBlobSize,
BYTE* rawBlob);
DESCRIPTION
Tspi_DecodeBER_TssBlob is used to unwrap a BER-encoded blob in accordance with the ASN.1 data definitions in the Portable Data section of
the Trusted Computing Group Software Stack Specification Version 1.2.
PARAMETERS
berBlobSize
Size of the BER-encoded blob.
berBlob
Pointer to the BER-encoded blob.
blobType
Pointer to the type of blob being unwrapped (refer to the TSS_BLOB_TYPE_* constants).
rawBlobSize
Pointer to the size of the rawBlob buffer. On input this parameter contains a pointer to the maximum size of the supplied rawBlob buffer.
On output this parameter contains a pointer to the actual size of the unwrapped blob. On input, if this parameter points to a value of 0,
then this function will return the size of the buffer required to hold the unwrapped blob without writing to the rawBlob buffer.
Note: The output data must be shorter than the BER-encoding, so berBlobSize is a useful upper limit on rawBlob buffer size.
rawBlob
Pointer to a buffer to hold the unwrapped blob.
RETURN CODES
Tspi_EncodeDER_TssBlob returns TSS_SUCCESS on success, otherwise one of the following values are returned:
TSS_E_BAD_PARAMETER
TSS_E_INTERNAL_ERROR - An error occurred internal to the TSS.
CONFORMING TO
Tspi_DecodeBER_TssBlob conforms to the Trusted Computing Group Software Specification Version 1.2
SEE ALSO Tspi_DecodeBER_TssBlob(3).
TSS 1.2 2007-06-12 Tspi_DecodeBER_TssBlob(3)