QUESTIONS :
---------------
What is the value 1251 and 6 from ls cmd in fifth column ? (I guess Bytes)
If those values represent Bytes, why is the difference between 'ls -la' and 'du -sh *' outputs ?
We use a UNIX-based system (Lawson) at work and I was given this command to request a data extract from the db admin. The only thing I really understand is the last line as it appears to be joining the files created from the first three lines into one. Is there anyone who can help me breakdown the... (4 Replies)
Guys,
I am trying to understand the sed command here.
adx001 $ a=/clocal/dctrdata/user/dctrdat1/trdroot/recouncil
adx001 $ b=`echo $a | sed 's/\//\\\\\//g'`
adx001 $ echo $b
\/clocal\/dctrdata\/user\/dctrdat1\/trdroot\/recouncil
The sed command i took it from the script.
Please... (3 Replies)
Hi All,
I search the forum for my query, Glad that got solution to it. But i really want to understand how does this command work.
sed -e ':a' -e 's/\("*\),\(*"\)/\1~\2/;ta'
Basically it is replacing all the comma(,) characters in between quotes with a tilde.
Specially what does ':a' ,... (2 Replies)
Hi Guys,
I like to know if i have a process which triggers 10 different child processes.
How to identify out of the 11 processes running which is the parent process and what are the child process?
And if i kill the parent process will the child process be killed.. if not is there a way to... (2 Replies)
hi
i was moving a file from one directory to another with the following cmmand
mv /home/hsghh/dfd/parent/file.txt .
while doing so i i accidently
mv /home/hsghh/dfd/dfd .
although i gave ctrl c and terminate the move command some of the file are missing in the parent directory and... (1 Reply)
Could you please explain me whats happening in the below code, appreciate your help, Thank you.
/product/apps/informatica/v7/pc/ExtProc/NewDAC/dacRecBuilder.sh
/product/apps/informatica/v7/pc/TgtFiles/NEW_DAC/DAC_Pos_TradeInv_Records.out ... (5 Replies)
I want to understand what does this command do:confused::confused: find . \( -type f -o -type 1 \) Plz someone explain me ! Thanks much in advance!! (2 Replies)
After running nm command on any object file from out put can we get to know that wheather a symbol is a call to a function or definition of function ?
I am searching a class and function definitions inside many .so files.
I have 3 files which contain the symbol but I don't know wheather they... (2 Replies)
Hi Friends,
I need a small help in understanding the below sed command.
$ cat t4.txt
1 root 1 58 0 888K 368K sleep 4:06 0.00% init
1 root 1 58 0 888K 368K sleep 4:06 0.00% init last
$ sed 's/*$//' t4.txt
1 root 1 58 0 888K ... (3 Replies)
Hello
I am working on a Change request and Stuck at a point. The below awk command is used in the function.
float_test ( ) {
echo | awk 'END { exit ( !( '"$1"')); }'
}
I understand that awk 'END' is used to add one line at the end and exit is used to end the script with an error... (4 Replies)
Discussion started by: rahul2662
4 Replies
LEARN ABOUT LINUX
asn1rt
asn1rt(3erl) Erlang Module Definition asn1rt(3erl)NAME
asn1rt - ASN.1 runtime support functions
DESCRIPTION
This module is the interface module for the ASN.1 runtime support functions. To encode and decode ASN.1 types in runtime the functions in
this module should be used.
EXPORTS
start() -> ok |{error,Reason}
Types Reason = term()
Starts the asn1 server that loads the drivers.
The server schedules a driver that is not blocked by another caller. The driver is used by the asn1 application if specs are com-
piled with options [per_bin, optimize] or [ber_bin, optimize, driver] . The server will be started automatically at encode/decode if
it isn't done explicitly. If encode/decode with driver is used in test or industrial code it is a performance gain to start it
explicitly to avoid the one time load in run-time.
stop() -> ok |{error,Reason}
Types Reason = term()
Stops the asn1 server and unloads the drivers.
decode(Module,Type,Bytes) -> {ok,Value}|{error,Reason}
Types Module = Type = atom()
Value = Reason = term()
Bytes = binary | [Int] when integer(Int), Int >= 0, Int =< 255 | binary
Decodes Type from Module from the list of bytes or binary Bytes . If the module is compiled with ber_bin or per_bin option Bytes
must be a binary. Returns {ok,Value} if successful.
encode(Module,Type,Value)-> {ok,BinOrList} | {error,Reason}
Types Module = Type = atom()
Value = term()
BinOrList = Bytes | binary()
Bytes = [Int|binary|Bytes] when integer(Int), Int >= 0, Int =< 255
Reason = term()
Encodes Value of Type defined in the ASN.1 module Module . Returns a possibly nested list of bytes and or binaries if successful. If
Module was compiled with the options per_bin and optimize the result is a binary. To get as fast execution as possible the encode
function only performs rudimentary tests that the input Value is a correct instance of Type . The length of strings is for example
not always checked.
info(Module) -> {ok,Info} | {error,Reason}
Types Module = atom()
Info = list()
Reason = term()
info/1 returns the version of the asn1 compiler that was used to compile the module. It also returns the compiler options that was
used.
load_driver() -> ok | {error,Reason}
Types Reason = term()
This function loads the linked-in driver before the first call to encode. If this function is not called the driver will be loaded
automatically at the first call to encode. If one doesn't want the performance cost of a driver load when the application is run-
ning, this function makes it possible to load the driver in an initialization.
The driver is only used when encoding/decoding ASN.1 files that were compiled with the options per_bin and optimize .
unload_driver() -> ok | {error,Reason}
Types Reason = term()
This function unloads the linked-in driver. When the driver has been loaded it remains in the environment until it is unloaded. Nor-
mally the driver should remain loaded, it is crucial for the performance of ASN.1 encoding.
The driver is only used when ASN.1 modules have been compiled with the flags per_bin and optimize .
utf8_binary_to_list(UTF8Binary) -> {ok,UnicodeList} | {error,Reason}
Types UTF8Binary = binary()
UnicodeList = [integer()]
Reason = term()
utf8_binary_to_list/1 Transforms a UTF8 encoded binary to a list of integers, where each integer represents one character as its
unicode value. The function fails if the binary is not a properly encoded UTF8 string.
utf8_list_to_binary(UnicodeList) -> {ok,UTF8Binary} | {error,Reason}
Types UnicodeList = [integer()]
UTF8Binary = binary()
Reason = term()
utf8_list_to_binary/1 Transforms a list of integers, where each integer represents one character as its unicode value, to a UTF8
encoded binary.
validate(Module,Type,Value) -> ok | {error,Reason}
Types Module = Type = atom()
Value = term()
Validates that Value conforms to Type from Module . Not implemented in this version of the ASN.1 application.
Ericsson AB asn1 1.6.16 asn1rt(3erl)