01-15-2011
I-node and sessions
I have a program (written by me, for educational purposes) called "analyzer".
The program takes a parameter, a filename, and does some statistics on it (for example, word's number, line's number, ... ) at regular intervals.
My teacher told me that if the file is edited while the "analyzer" is on, the program may not be aware of the changes, because some editors using x-server (as gedit) create a new i-node and a new session for the file, different from the i-node the "analyzer" is using.
Can someone explain this step, please?
Thank you in advance for your attention.
P.S. I'm sorry if my English is not accurate.
10 More Discussions You Might Find Interesting
1. Programming
Hey guys, i'm in trouble, i'm high school teacher, and a student ask me for help, he want's to know where he can study C language for his application exam. Somebody could help us? (1 Reply)
Discussion started by: eleia
1 Replies
2. UNIX for Dummies Questions & Answers
Being new to screen I am having real trouble with some basics.
Actually when I login to a machine and type
sharan :: screen -list
I see the following There are screens on:
11001.pts-11.hcllnx2 (Attached)
10615.pts-11.hcllnx2 (Attached)
2 Sockets in... (0 Replies)
Discussion started by: sharanbr
0 Replies
3. Shell Programming and Scripting
Hi everybody,
I need a script that shows the total number of sessions there are ...
This shows how many sessions are open...
echo "Number of open sessions: "
w | grep :0 | wc | awk '{print $1}
But how can I see how many sessions there are in total??
I hope someone can help me...
... (3 Replies)
Discussion started by: xaviraan
3 Replies
4. Solaris
Unix sys admin in training here and I was performing a rollout of java code. While rolling out my connection to the server was broken.
I logged back on to the box and performed a ps -ef | grep 'user' .
I could see that session and pid number.
My question is was there anyway to resume or... (1 Reply)
Discussion started by: vedder191
1 Replies
5. UNIX for Dummies Questions & Answers
Hi I am working in Solaris 10 and I want to monitor logs for every telnet/ssh session that tries to connect to the server. I need these logs to be generated in a file that I can fetch using ftp.
I am a new user and a stepwise detail will be great
BR
saGGee (3 Replies)
Discussion started by: saggee
3 Replies
6. Solaris
Hi,
Is it possible to have a Solaris cluster of 2 nodes at SITE-A using SVM and creating metaset using say 2 LUNs (on SAN). Then replicating these 2 LUNs to remote site SITE-B via storage based replication and then using these LUNs by importing them as a metaset on a server at SITE-B which is... (0 Replies)
Discussion started by: dn2011
0 Replies
7. Shell Programming and Scripting
Hi ,
I am connecting to the linux redhat machine as user : APPS
I would like to know how i can kill -9 , all APPS sessions beside me .
Please advice
Thanks (2 Replies)
Discussion started by: yoavbe
2 Replies
8. HP-UX
What kind of problems can be faced if any session which connects to unix server is open for longer time?
How to find out from how much time that session is idle? :) (1 Reply)
Discussion started by: anandgodse
1 Replies
9. Homework & Coursework Questions
Hi Experts,
I am in need of running a script from one node say node 1 via node 2.
My scheduling tool dont have access to node2 , so i need to invoke the list file from node1 but the script needs to run from node2. because the server to which i am hitting, is having access only for the node... (5 Replies)
Discussion started by: arun1377
5 Replies
10. HP-UX
Hi,
We have HP UX service guard cluster on OS 11.23. Recently 40+ LUNs presented to both nodes by SAN team but I was asked to mount them on only one node. I created required VGs/LVs, created VxFS and mounted all of them and they are working fine. Now client requested those FS on 2nd node as... (4 Replies)
Discussion started by: prvnrk
4 Replies
LEARN ABOUT DEBIAN
kinosearch1::queryparser::queryparser
KinoSearch1::QueryParser::QueryParser(3pm) User Contributed Perl Documentation KinoSearch1::QueryParser::QueryParser(3pm)
NAME
KinoSearch1::QueryParser::QueryParser - transform a string into a Query object
SYNOPSIS
my $query_parser = KinoSearch1::QueryParser::QueryParser->new(
analyzer => $analyzer,
fields => [ 'bodytext' ],
);
my $query = $query_parser->parse( $query_string );
my $hits = $searcher->search( query => $query );
DESCRIPTION
The QueryParser accepts search strings as input and produces Query objects, suitable for feeding into KinoSearch1::Searcher.
Syntax
The following constructs are recognized by QueryParser.
o Boolean operators 'AND', 'OR', and 'AND NOT'.
o Prepented +plus and -minus, indicating that the labeled entity should be either required or forbidden -- be it a single word, a phrase,
or a parenthetical group.
o Logical groups, delimited by parentheses.
o Phrases, delimited by double quotes.
o Field-specific terms, in the form of "fieldname:termtext". (The field specified by fieldname will be used instead of the QueryParser's
default fields).
A field can also be given to a logical group, in which case it is the same as if the field had been prepended onto every term in the
group. For example: "foo:(bar baz)" is the same as "foo:bar foo:baz".
METHODS
new
my $query_parser = KinoSearch1::QueryParser::QueryParser->new(
analyzer => $analyzer, # required
fields => [ 'bodytext' ], # required
default_boolop => 'AND', # default: 'OR'
);
Constructor. Takes hash-style parameters:
o analyzer - An object which subclasses KinoSearch1::Analysis::Analyzer. This must be identical to the Analyzer used at index-time, or
the results won't match up.
o fields - the names of the fields which will be searched against. Must be supplied as an arrayref.
o default_field - deprecated. Use "fields" instead.
o default_boolop - two possible values: 'AND' and 'OR'. The default is 'OR', which means: return documents which match any of the query
terms. If you want only documents which match all of the query terms, set this to 'AND'.
parse
my $query = $query_parser->parse( $query_string );
Turn a query string into a Query object. Depending on the contents of the query string, the returned object could be any one of several
subclasses of KinoSearch1::Search::Query.
COPYRIGHT
Copyright 2005-2010 Marvin Humphrey
LICENSE, DISCLAIMER, BUGS, etc.
See KinoSearch1 version 1.00.
perl v5.14.2 2011-11-15 KinoSearch1::QueryParser::QueryParser(3pm)