Hello!
What you can try out is: have a huge circular buffer for example say around 6144 (6KB) , you can experiment with the size!!
What i mean by circular is have two pointers, start_ptr and processed_ptr.
1) Have start_ptr and processed_ptr as global
2) You must take care of rollover of processed_ptr for every read
Hi All,
I have written a script which does some editing in the files, based on user input.This might not be the most elegant way of doing it and there would be many improvements needed.
Please go through it and let me know how it could be improved.
Suggestions are welcome!!
Thanks!... (2 Replies)
Hi!
Thank you for the help yesterday
This is the finished product
There is one more thing I would like to do to it but I’m not to certain
On how to proceed I would like to log all output to a log in order to
Be able to roll back
This script is meant to be used in repairing a... (4 Replies)
Hello,
I am pretty new to shell scripts and I recently wrote one that seems to do what it should but I am exploring the possibility of improving its performance and would appreciate some help. Here is what it does - Its meant to monitor a bunch of systems (reads in IPs one at a time from a flat... (9 Replies)
can anyone help to share the knowledge on linux os improvement?
1) os account
- use window AD authentication, such as ldap, but how to set /etc/passwd, where to put user home?
2) user account activity
- how to log os user activity
share the idea and what tools can do that...thx (5 Replies)
Hi All,
Here is my script
#! /bin/sh
var1=some email id
var2=some email id
grep -i "FAILED FILE FORMAT VALIDATION" /opt >tmp2
diff tmp1 tmp2 | grep ">" >tmp3
if
then
cat tmp3 | mailx -s " Error Monitoring" $var2
else
echo "Pattern NOt Found" | mailx -s " Error Monitoring" $var1... (1 Reply)
Hi This is my Following code:
#!/bin/sh
echo "TOTAL_NO_OF_MAILS"
read TOTAL_NO_OF_MAILS
echo "TOTAL_NO_OF_TICKETS "
read TOTAL_NO_OF_TICKETS
echo "TICKETS_IN_QUEUE"
read TICKETS_IN_QUEUE
rm -rf `pwd`/Focus
echo "Hi Team\nSTATS IN CLRS MAIL BOX\n\n==============================" >> Focus... (11 Replies)
Below script is used to search numeric data from around 400 files in a folder. I have 300 such folders. Need help in performance improvement in the script.
Below Script searches 20 such folders ( 300 files in each folder) simultaneously. This increases cpu utilization upto 90% What changes... (3 Replies)
Discussion started by: vegasluxor
3 Replies
LEARN ABOUT REDHAT
krb5_appdefault
KRB5_APPDEFAULT(3) BSD Library Functions Manual KRB5_APPDEFAULT(3)NAME
krb5_appdefault_boolean, krb5_appdefault_string, krb5_appdefault_time -- get application configuration value
LIBRARY
Kerberos 5 Library (libkrb5, -lkrb5)
SYNOPSIS
#include <krb5.h>
void
krb5_appdefault_boolean(krb5_context context, const char *appname, krb5_realm realm, const char *option, krb5_boolean def_val,
krb5_boolean *ret_val);
void
krb5_appdefault_string(krb5_context context, const char *appname, krb5_realm realm, const char *option, const char *def_val, char **ret_val);
void
krb5_appdefault_time(krb5_context context, const char *appname, krb5_realm realm, const char *option, time_t def_val, time_t *ret_val);
DESCRIPTION
These functions get application defaults from the appdefaults section of the krb5.conf(5) configuration file. These defaults can be specified
per application, and/or per realm.
These values will be looked for in krb5.conf(5), in order of descending importance.
[appdefaults]
appname = {
realm = {
option = value
}
}
appname = {
option = value
}
realm = {
option = value
}
option = value
appname is the name of the application, and realm is the realm name. If the realm is omitted it will not be used for resolving values.
def_val is the value to return if no value is found in krb5.conf(5).
SEE ALSO krb5_config(3), krb5.conf(5)HEIMDAL July 25, 2000 HEIMDAL