tt_pattern_create(library call) tt_pattern_create(library call)
NAME
tt_pattern_create -- request a new pattern object
SYNOPSIS
#include <Tt/tt_c.h>
Tt_pattern tt_pattern_create(void)
DESCRIPTION
The tt_pattern_create function requests a new pattern object.
After receiving the pattern object, the application fills in the message pattern fields to indicate what type of messages the process wants
to receive and then registers the pattern with the ToolTalk service.
The application can supply multiple values for each attribute added to a pattern (although some attributes are set and can only have one
value). The pattern attribute matches a message attribute if any of the values in the pattern match the value in the message. If no value
is specified for an attribute, the ToolTalk service assumes that any value will match.
RETURN VALUE
Upon successful completion, the tt_pattern_create function returns the opaque handle for a message pattern. The application can use this
handle in future calls to identify the pattern object. The application can use tt_ptr_error(3) to extract one of the following Tt_status
values from the returned handle:
TT_OK The operation completed successfully.
TT_ERR_NOMP
The ttsession(1) process is not running and the ToolTalk service cannot restart it.
APPLICATION USAGE
The application should use tt_free(3) to free any data stored in the address returned by the ToolTalk API.
SEE ALSO
Tt/tt_c.h - Tttt_c(5), tt_pattern_register(3), tt_ptr_error(3), tt_free(3).
tt_pattern_create(library call)
Check Out this Related Man Page
tt_pattern_user(library call) tt_pattern_user(library call)
NAME
tt_pattern_user -- return the value in a user data cell for a pattern object
SYNOPSIS
#include <Tt/tt_c.h>
void *tt_pattern_user(
Tt_pattern p,
int key);
DESCRIPTION
The tt_pattern_user function returns the value in the indicated user data cell for the specified pattern object.
Every pattern object allows an arbitrary number of user data cells that are each one word in size. The user data cells are identified by
integer keys. The tool can use these keys in any manner to associate arbitrary data with a pattern object.
The user data is part of the pattern object (that is, the storage buffer in the application); it is not part of the actual pattern. The
content of user cells has no effect on pattern matching.
The p argument is a unique handle for a message pattern. This handle is returned after tt_pattern_create is called. The key argument is
the specified user data cell. The application can use tt_pattern_user_set(3) to assign the keys to the user data cells that are part of
the pattern object. The value of each data cell must be unique for this pattern.
RETURN VALUE
Upon successful completion, the tt_pattern_user function returns the data cell, a piece of arbitrary user data that can hold a void *. The
application can use tt_ptr_error(3) to extract one of the following Tt_status values from the returned data:
TT_OK The operation completed successfully.
TT_ERR_NOMP
The ttsession(1) process is not running and the ToolTalk service cannot restart it.
TT_ERR_POINTER
The pointer passed does not point to an object of the correct type for this operation.
APPLICATION USAGE
The user data cell is intended to hold an address. If the address selected is equal to one of the Tt_status enumerated values, the result
of the tt_ptr_error(3) function will not be reliable.
SEE ALSO
Tt/tt_c.h - Tttt_c(5), tt_pattern_user_set(3), tt_pattern_create(3), tt_ptr_error(3).
tt_pattern_user(library call)
When editing/viewing files with the vi editor, whenever I try to exit I get a "pattern not found" message. This message occurs even if I just open the file and try to close it without changing anything. Does anyone know why this is happening? It doesn't matter what file it is.
- Brad (5 Replies)
Hi guys,
i have a pattern that i am searching in a file and i want to extract some of this pattern
...
module TS1N65ULPA96X32M4 (
....
i want to extract only TS1N65ULPA96X32M4 part and i do the following
sed 's/module \(x*\).*/\1/' name_of_file
but this is not quite right.
could... (6 Replies)
hi everybody,
i have a file, in it I need to extract some data that follows a particular pattern..
For example: my file contains like
now running Speak225
sep 22 mon 16:34:05 2008
--------------------------------
... (4 Replies)
hi,
i am parsing a file, in that searching for lines those contains "$threadNo.Received message:" , if that line contains the required fields write them into a separate file other wise ignore them.
i am using the following code,but it is printing all the lines , i dont want to rpint , please help... (3 Replies)
Hi
I have a pattern like :
SYSTEM_NAME-232-S7-200810060949.LOG
Here I need to extract system name and the timestamp and also the numeric number after "-S" i.e 7 here .
I am not very sure of whether I should use sed / awk for this ?:confused:
Thanks,
Priya. (6 Replies)
I have data like the following pattern:
<change date="2000-01-09" who="#OUCS">Updated all catrefs</change>
<change date="2000-01-08" who="#OUCS">Manually updated tagcounts, titlestmt, and title in source</change>
<change date="1999-09-13" who="#UCREL">POS codes revised for BNC-2; header... (14 Replies)
Hi,
I need to extract data from a text file in which data has a pattern. I need to extract all repeated pattern and then save it to different files.
example:
input is:
ST*867*000352214
BPT*00*1000352214*090311
SE*1*1
ST*867*000352215
BPT*00*1000352214*090311
SE*1*2
... (5 Replies)
In my file I have a pattern
ri="234"
value of ri can be any i want to find this pattern in file replace this value of ri with another value stored in some variable say newri
Please tell how to do it?
Thanks in Advance (10 Replies)
While running the script it is failing while searching the pattern if the pattern is found then it is running fine if the pattern is
not found it terminate with error my requirement is if the pattern is not found then it exit successfully.
cat $INTE/CTY_${DATE}_cn_ar.*|cut -c 1-100|grep... (3 Replies)
I am trying to extract specific XML attribute values for search pattern <factories.*baseQueueName' from resources.xml.
my scripts works ok,, but to extract 3 values this code does echo $line three times, it could be 'n' times. How can I use awk to extract matching pattern values in-line or... (11 Replies)
Hi
I have data file like below:
NET_SALES^M ^M---- new fields for -- ^M ,YABA_FLAG^M ,DOO_FLAG^M
My requirement is to search for atleast 2 -- and remove all the words till first ^M is encountered.
In above case, output should be like
NET_SALES^M ^M ,YABA_FLAG^M ,DOO_FLAG^M
TIA... (4 Replies)
Hi All,
I am having a file like below . Basically when SB comes in the text with B. I have to take the word till SB. When there only B I should take take till B. Tried for cut it by demilter but not able to build the logic
SB- CD B_RESTO SB_RESTO CRYSTALS BOILERS -->There SB and B so I... (6 Replies)
Hi All,
need help...
I have some log below : ### {"request_id":"e8395eb0-a8bd-11e9-b77b-d507ea5312aa","message":"when inquiry paybill 628524871 prevalidation cause : Invalid Transaction"}
### {"request_id":"043f2310-a8be-11e9-b57b-f9c7344998d7","message":"when inquiry paybill 62821615... (2 Replies)