7 More Discussions You Might Find Interesting
1. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Write a shell script program that will input a name and a mark between 0 and 100. The program then displays the... (9 Replies)
Discussion started by: UniverseCloud
9 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I am learning unix. I want to practice few small excercises. Please suggest me some goor URL to practice.
Thanks in advance. (1 Reply)
Discussion started by: stew
1 Replies
3. Shell Programming and Scripting
hello everyone!:)
I have an exercise which I think is difficult for beginner like me. Here is the exercise
Create a shell script, which takes a directory as command line argument.
Script displays ten first lines from every text file in that directory. After
displaying the lines from the... (1 Reply)
Discussion started by: googlevn
1 Replies
4. Homework & Coursework Questions
you are to write a program which will read in a tax rate (as a percentage) and the prices of 5 items. the program is to calculate the total price, before tax, of the items and then the tax payable on those items, and then the total amount due. the tax payable is computed by appliying the tax rate... (1 Reply)
Discussion started by: bunkercrazy
1 Replies
5. Shell Programming and Scripting
Hi, 'm trying to do an exercicise, and one part is:
ls -l $1 | awk '
BEGIN {
max = $5;
}
{
if ($5 > max){
max = $5;
}
}
END {
print "Tamanio mayor fichero = " max; }'
# Imprimimos ahora el menor tamaņo de fichero
ls -l $1 | awk '... (4 Replies)
Discussion started by: Phass
4 Replies
6. UNIX for Dummies Questions & Answers
Hello guys.
Well, on this exercise i need the average "chargeAmount" per hour (for each hour).
with this code :
cat getusagesummarywrongmatch | grep -iv MOU2GRTObject | cut -d'|' -f4,14 | grep -i chargeamount | cut -d' ' -f2
http://img227.imageshack.us/img227/5889/65969235do0.jpg
i got... (2 Replies)
Discussion started by: EnioMarques
2 Replies
7. UNIX for Dummies Questions & Answers
Hello guys..
well, im kinda newbie with unix because i started to learn it like 2 weeks ago.
then i started to make some exercises, but i got stucked on this one :
so, i need to know how many different 'names' has the 5th field and how many times each name appears.
i was trying with a... (6 Replies)
Discussion started by: EnioMarques
6 Replies
AU_FREE_TOKEN(3) BSD Library Functions Manual AU_FREE_TOKEN(3)
NAME
au_free_token -- deallocate a token_t created by any of the au_to_*() BSM API functions
LIBRARY
Basic Security Module Library (libbsm, -lbsm)
SYNOPSIS
#include <bsm/libbsm.h>
void
au_free_token(token_t *tok);
DESCRIPTION
The BSM API generally manages deallocation of token_t objects. However, if au_write(3) is passed a bad audit descriptor, the token_t *
parameter will be left untouched. In that case, the caller can deallocate the token_t using au_free_token() if desired.
The tok argument is a token_t * generated by one of the au_to_*() BSM API calls. For convenience, tok may be NULL, in which case
au_free_token() returns immediately.
IMPLEMENTATION NOTES
This is, in fact, what audit_write(3) does, in keeping with the existing memory management model of the BSM API.
SEE ALSO
audit_write(3), au_write(3), libbsm(3)
HISTORY
The OpenBSM implementation was created by McAfee Research, the security division of McAfee Inc., under contract to Apple Computer, Inc., in
2004. It was subsequently adopted by the TrustedBSD Project as the foundation for the OpenBSM distribution.
AUTHORS
This software was created by Robert Watson, Wayne Salamon, and Suresh Krishnaswamy for McAfee Research, the security research division of
McAfee, Inc., under contract to Apple Computer, Inc.
The Basic Security Module (BSM) interface to audit records and audit event stream format were defined by Sun Microsystems.
BSD
April 19, 2005 BSD