next stupid question is how do I access one of the many files in the function? So the results of os.walk populates my list -- content [] with the files in the directory:
so how would I access that information so I can add additional logic to my script? when I attempt to access anything in my list, I get the following error
when not using a function I can access the elements a such:
Last edited by metallica1973; 10-31-2013 at 01:19 PM..
Hi Pals,
I need some information related .def file in HP-Ux shell scripting. What actaully a .def file contains. It is having all definitions of some functions. But what is the relationship between a .def file and shell script. Can anyone give some examples.
Thanks in Advance.
Best... (1 Reply)
Guys,
I need to iterate populate an array while going over files in directory. Can someone please tell me syntax I tried this but it isn't working ==>
for F in `ls -p "${directory1}" | grep -v "\/"`
do
cd "${directory2}"
cmp "${directory2}"/"${F}" "${directory1}"/"${F}" ... (2 Replies)
File_A contains Strings:
a
b
c
d
File_B contains Strings:
a
c
z
Need to have script written in either sh or ksh. Derive resultant files (File_New_A and File_New_B) from lists File_A and File_B where string elements in File_New_A and File_New_B are listed below.
Resultant... (7 Replies)
Hi,
I have to create a JList and the items I need to display are store in HashMap table. What would be the easiest way to populate this JList. Basically the items I want to display/show in the JList are the key values of the HashMap. Thanks in advance for any suggestions. (0 Replies)
Hi.
I am trying to write a Python programme that compares two different text files which both contain a list of words. Each word has its own line
worda
wordb
wordc
I want to compare textfile 2 with textfile 1, and if there's a word in textfile 2 that is NOT in textfile 1, I want to... (6 Replies)
Hello,
I'm new to the python programming, and I have a question.
I have to write a program that prints a receipt for a restaurant. The input is a list which looks like:
product1
product3
product8
....
In the other input file there is a list which looks like:
product1 coffee 5,00... (1 Reply)
Hello, I have a pretty simple question, but I am new to Python and am trying to write a simple program. Put simply, I want to take a text file that looks like this:
11111 22222
33333 44444
55555 66666
77777 88888
and produce two lists, one containing the contents of the left column, one the... (0 Replies)
I am just trying to concatenate two lists together, but I am not sure what is wrong with my code, it won't run. Thank you for any help.
#!/usr/bin/python
# Takes two lists and returns a list that is the concatenation of both of
# them.
A =
B =
def list_concat( A, B):
print(A)
... (2 Replies)
I am working on klibc. I need to add a new command in kernel. klibc contains a SYSCALLS.def file which declares functions.
Where can I find definition of functions declared in .def file? (1 Reply)
Discussion started by: Vasundhara08
1 Replies
LEARN ABOUT FREEBSD
hx509_oid_print
hx509 printing functions(3) Heimdalx509library hx509 printing functions(3)NAME
hx509 printing functions -
Functions
void hx509_print_stdout (void *ctx, const char *fmt, va_list va)
int hx509_oid_sprint (const heim_oid *oid, char **str)
void hx509_oid_print (const heim_oid *oid, hx509_vprint_func func, void *ctx)
void hx509_bitstring_print (const heim_bit_string *b, hx509_vprint_func func, void *ctx)
int hx509_cert_keyusage_print (hx509_context context, hx509_cert c, char **s)
int hx509_validate_ctx_init (hx509_context context, hx509_validate_ctx *ctx)
void hx509_validate_ctx_set_print (hx509_validate_ctx ctx, hx509_vprint_func func, void *c)
void hx509_validate_ctx_add_flags (hx509_validate_ctx ctx, int flags)
void hx509_validate_ctx_free (hx509_validate_ctx ctx)
int hx509_validate_cert (hx509_context context, hx509_validate_ctx ctx, hx509_cert cert)
Detailed DescriptionFunction Documentation
void hx509_bitstring_print (const heim_bit_string * b, hx509_vprint_func func, void * ctx)
Print a bitstring using a hx509_vprint_func function. To print to stdout use hx509_print_stdout().
Parameters:
b bit string to print.
func hx509_vprint_func to print with.
ctx context variable to hx509_vprint_func function.
int hx509_cert_keyusage_print (hx509_context context, hx509_cert c, char ** s)
Print certificate usage for a certificate to a string.
Parameters:
context A hx509 context.
c a certificate print the keyusage for.
s the return string with the keysage printed in to, free with hx509_xfree().
Returns:
An hx509 error code, see hx509_get_error_string().
void hx509_oid_print (const heim_oid * oid, hx509_vprint_func func, void * ctx)
Print a oid using a hx509_vprint_func function. To print to stdout use hx509_print_stdout().
Parameters:
oid oid to print
func hx509_vprint_func to print with.
ctx context variable to hx509_vprint_func function.
int hx509_oid_sprint (const heim_oid * oid, char ** str)
Print a oid to a string.
Parameters:
oid oid to print
str allocated string, free with hx509_xfree().
Returns:
An hx509 error code, see hx509_get_error_string().
void hx509_print_stdout (void * ctx, const char * fmt, va_list va)
Helper function to print on stdout for:
o hx509_oid_print(),
o hx509_bitstring_print(),
o hx509_validate_ctx_set_print().
Parameters:
ctx the context to the print function. If the ctx is NULL, stdout is used.
fmt the printing format.
va the argumet list.
int hx509_validate_cert (hx509_context context, hx509_validate_ctx ctx, hx509_cert cert)
Validate/Print the status of the certificate.
Parameters:
context A hx509 context.
ctx A hx509 validation context.
cert the cerificate to validate/print.
Returns:
An hx509 error code, see hx509_get_error_string().
void hx509_validate_ctx_add_flags (hx509_validate_ctx ctx, int flags)
Add flags to control the behaivor of the hx509_validate_cert() function.
Parameters:
ctx A hx509 validation context.
flags flags to add to the validation context.
Returns:
An hx509 error code, see hx509_get_error_string().
void hx509_validate_ctx_free (hx509_validate_ctx ctx)
Free an hx509 validate context.
Parameters:
ctx the hx509 validate context to free.
int hx509_validate_ctx_init (hx509_context context, hx509_validate_ctx * ctx)
Allocate a hx509 validation/printing context.
Parameters:
context A hx509 context.
ctx a new allocated hx509 validation context, free with hx509_validate_ctx_free().
Returns:
An hx509 error code, see hx509_get_error_string().
void hx509_validate_ctx_set_print (hx509_validate_ctx ctx, hx509_vprint_func func, void * c)
Set the printing functions for the validation context.
Parameters:
ctx a hx509 valication context.
func the printing function to usea.
c the context variable to the printing function.
Returns:
An hx509 error code, see hx509_get_error_string().
Version 1.5.2 11 Jan 2012 hx509 printing functions(3)