03-14-2011
Quote:
QUERY2="ENDUR.SIM_HEADER:"where run_time >= trunc(SYSDATE -5) or trunc(run_time) in ( trunc(sysdate,'mm')-1, trunc(add_months(sysdate,-1),'mm')-1)"
The above line contains three double quote characters and gives a syntax error in my Shell. If you don't get a syntax error you may have another unmatched quote somewhere in the script. I'd remove the middle of the three.
It's not clear what you what value you want.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi all,
The server seems to be losing time, not a lot, but enough to be noticed.
UNIX
AIX 4.3.3
Any ideas,
Kathy (9 Replies)
Discussion started by: kburrows
9 Replies
2. Shell Programming and Scripting
I'm not very familiar with the ssh command. When I tried to set a variable and then echo its value on a remote machine via ssh, I found a problem. For example,
$ ITSME=itsme
$ ssh xxx.xxxx.xxx.xxx "ITSME=itsyou; echo $ITSME"
itsme
$ ssh xxx.xxxx.xxx.xxx 'ITSME=itsyou; echo $ITSME'
itsyou
$... (3 Replies)
Discussion started by: password636
3 Replies
3. Shell Programming and Scripting
Hi guys, I have a sed line in double quotes which works fine, but I want it to be in single quotes
here is the sed line
sed "/abc_def/s/\'.*\'/\'\${abc_def}\'/"
can some one give the equivalent to the above script in single quotes
Thanks a ton (5 Replies)
Discussion started by: sol_nov
5 Replies
4. Shell Programming and Scripting
I'm using a while read statement to read in lines from a file, if a value (for example) is 1000.10 in a field, the last zero is removed leaving 1000.1 does anyone know a way to keep the field as it is in the original file? (1 Reply)
Discussion started by: gefa
1 Replies
5. UNIX for Dummies Questions & Answers
Unix superusers,
I am new to unix but would like to learn more about grep. I am very familiar with regular expressions as i have used them for searching text files in windows based text editors. Since I am not very familiar with Unix, I dont understand when one should use GREP with the... (2 Replies)
Discussion started by: george_vandelet
2 Replies
6. Emergency UNIX and Linux Support
Hey guys, facing a weird issue - hoping someone might be able to help.
The wireless network on my laptop is configured with a static IP address. (not using nm)
When i take the laptop out of the range (or i power the router down) the essid is becoming "off/any".
When i'm back in range the... (6 Replies)
Discussion started by: moshe88
6 Replies
7. Shell Programming and Scripting
Hello. I'm trying to write a bash script that uses GNU screen and have hit a brick wall that has cost me many hours... (I'm sure it has something to do with quoting/globbing, which is why I post it here)
I can make a script that does the following just fine:
test.sh:
#!/bin/bash
# make... (2 Replies)
Discussion started by: jondecker76
2 Replies
8. Shell Programming and Scripting
Hi,
Trying to change the prompt. I have the following code.
export PS1='
<${USER}@`hostname -s`>$ '
The hostname is not displayed
<abc@`hostname -s`>$ uname -a
AIX xyz 1 6 00F736154C00
<adcwl4h@`hostname -s`>$
If I use double quotes, then the hostname is printed properly but... (3 Replies)
Discussion started by: bobbygsk
3 Replies
9. Shell Programming and Scripting
Hi All,
I'm unable to load the data using sql loader where there are double quotes within the double quotes As these are optionally enclosed by double quotes.
Sample Data :
"221100",138.00,"D","0019/1477","44012075","49938","49938/15043000","Television - 22" Refurbished - Airwave","Supply... (6 Replies)
Discussion started by: mlavanya
6 Replies
10. Forum Support Area for Unregistered Users & Account Problems
Hi.
Recently when I'm logged in to site after some seconds, for instance, I lose the connection and need sign in again. It happens on Firefox and Chrome.
Or another example, when I'm logged in to site and click on my nick name (right up corner) I lose the connection to site.
User: tiago
... (0 Replies)
Discussion started by: Unregistered
0 Replies
LEARN ABOUT PHP
yaz_search
YAZ_SEARCH(3) 1 YAZ_SEARCH(3)
yaz_search - Prepares for a search
SYNOPSIS
bool yaz_search (resource $id, string $type, string $query)
DESCRIPTION
yaz_search(3) prepares for a search on the given connection.
Like yaz_connect(3) this function is non-blocking and only prepares for a search to be executed later when yaz_wait(3) is called.
PARAMETERS
o $id
- The connection resource returned by yaz_connect(3).
o $type
- This parameter represents the query type - only "rpn" is supported now in which case the third argument specifies a Type-1 query
in prefix query notation.
o $query
- The RPN query is a textual representation of the Type-1 query as defined by the Z39.50 standard. However, in the text represen-
tation as used by YAZ a prefix notation is used, that is the operator precedes the operands. The query string is a sequence of
tokens where white space is ignored unless surrounded by double quotes. Tokens beginning with an at-character ( @) are considered
operators, otherwise they are treated as search terms.
RPN Operators
+-----------------------------+---------------------------------------------------+
| Construct | |
| | |
| | Description |
| | |
+-----------------------------+---------------------------------------------------+
| | |
| @and query1 query2 | |
| | |
| | intersection of query1 and query2 |
| | |
| | |
| @or query1 query2 | |
| | |
| | union of query1 and query2 |
| | |
| | |
| @not query1 query2 | |
| | |
| | query1 and not query2 |
| | |
| | |
| @set name | |
| | |
| | result set reference |
| | |
| | |
| @attrset set query | |
| | |
| | specifies attribute-set for query. This con- |
| | struction is only allowed once - in the beginning |
| | of the whole query |
| | |
| | |
|@attr [set] type=value query | |
| | |
| | applies attribute to query. The type and value |
| | are integers specifying the attribute-type and |
| | attribute-value respectively. The set, if given, |
| | specifies the attribute-set. |
| | |
+-----------------------------+---------------------------------------------------+
You can find information about attributes at the Z39.50 Maintenance Agency site.
Note
If you would like to use a more friendly notation, use the CCL parser - functions yaz_ccl_conf(3) and yaz_ccl_parse(3).
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
Query Examples
You can search for simple terms, like this:
computer
The query
"knuth donald"
This query applies two attributes for the same phrase.
The query
@and @or a b @not @or c d e
(a or b) and ((c or d) not e).
Another, more complex, one:
@attrset gils @and @attr 1=4 art @attr 1=2000 company
art occur in the title (GILS,BIB-1) and in which company occur as Distributor (GILS).
PHP Documentation Group YAZ_SEARCH(3)