Hi,
I have written the following two scripts.
a.ksh --->
FPATH=/users/kushard
autoload b
b
echo "From a.ksh::" $aa
b --->
function b
{
typeset aa
aa="TRUE."
echo "From b::" $aa
export aa
} (1 Reply)
:confused: some one please tell me where i can possibly find out what is unix 10.2 and the basic system functions of it is. I really need help! (1 Reply)
Can somebody explain it to me that why wc gives more chars suppose
Ab.txt have two lines
qwer
qasd
then wc -c ab.txt will give 10.why not 8.okay may be it is taking count one for each line just in case but why echo "qwer"|wc -C gives 5.
Ok with \c it is returning 4. :) (6 Replies)
Hi All,
my intention is read urls from a file (what ever url's it may be) but the url's which are not opening i.e which displays 404 , page not found error and so on should be commented in the file with # symbol.
for the correct url's : nothing to be done(except script should validate... (0 Replies)
Good day, everyone!
Could anybody explain me the following situation.
If I'm running similar script:
Var="anna.kurnikova"
Var2="Anna Kurn"
echo $Var | tr -t "$Var" "$Var2"
Why the output is :
anna KurniKova
instead of Anna Kurnikova?
:confused:
Thank you in advance for any... (2 Replies)
Hell Unix.com Community:
I am working on a personal project using yad v0.12.4 (zenity fork) and have hit a wall on how to show a progress bar while my function is processing.
I have been all over the ABS Guide, googled 21 Linux-specific sites that I revere. I even asked on the yad-common... (4 Replies)
Hi All,
I used this code to strip-off $-symbol from string values.
a="$980"
b="897"
a=`echo "$a" | sed 's/$/ /g'`
b=`echo "$b" | sed 's/$/ /g'`
echo "$a"
echo "$b"
but this results in the output:
80 and 897
it works when i use
a='$987'
b='890' (13 Replies)
Hello All,
I have a problem in counting number of process getting run with my current script name..
Here it is
ps -ef | grep $0 | grep -v grep
This display just one line with the PID, PPID and other details when i print it in the script.
But when I want to count the numbers in my... (11 Replies)
Discussion started by: sathyaonnuix
11 Replies
LEARN ABOUT NETBSD
ksyms
KSYMS(4) BSD Kernel Interfaces Manual KSYMS(4)NAME
ksyms -- kernel symbol table interface
SYNOPSIS
pseudo-device ksyms
DESCRIPTION
The /dev/ksyms character device provides a read-only interface to the current kernel symbol table. It can be accessed either as a sequential
file, where it looks like an executable file but with zero-sized text and data segments, or via ioctl(2).
/dev/ksyms represents the symbol table at the time when the device is opened, and may not change until it is closed.
The in-kernel symbol manager is designed to be able to handle any type of symbol table. However, only elf(5) symbol tables are currently
dealt with.
IOCTLS
The ioctl(2) command codes below are defined in <sys/ksyms.h>.
The (third) argument to the ioctl(2) should be a pointer to the type indicated.
KIOCGSIZE (int)
Returns the total size of the current symbol table. This should be used when allocating a buffer to read in the whole symbol
table to memory.
KIOCGVALUE (struct ksyms_gsymbol)
Returns the value for the given symbol name in a symtab-independent fashion.
struct ksyms_gsymbol {
const char *kg_name;
unsigned long *kg_value;
};
The struct element kg_name should be set to the name of the requested value, and the address that kg_value points to will
receive the symbol value.
KIOCGSYMBOL (struct ksyms_gsymbol)
Returns the complete symbol for the given symbol name.
struct ksyms_gsymbol {
const char *kg_name;
void *kg_sym;
};
The struct element kg_name should be set to the name of the requested symbol, and the found symbol will be written to the
kg_sym address. It is the callers responsibility to ensure that enough space for the symbol is allocated.
FILES
/dev/ksyms
SEE ALSO ioctl(2), nlist(3), elf(5)HISTORY
A ksyms device exists in many different operating systems. This implementation is modelled in function after Solaris ksyms. This ksyms
driver was written by Anders Magnusson for NetBSD.
The ksyms driver first appeared in NetBSD 2.0.
BSD November 12, 2008 BSD