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 NETBSD
forward
FORWARD(5) BSD File Formats Manual FORWARD(5)
NAME
forward -- mail forwarding instructions
DESCRIPTION
The .forward file contains a list of mail addresses or programs that the user's mail should be redirected to. If the file is not present,
then no mail forwarding will be done. Mail may also be forwarded as the standard input to a program by prefixing the line with the normal
shell pipe symbol (|). If arguments are to be passed to the command, then the entire line should be enclosed in quotes. For security rea-
sons, the .forward file must be owned by the user the mail is being sent to, or by root, and the user's shell must be listed in /etc/shells.
For example, if a .forward file contained the following lines:
nobody@NetBSD.org
"|/usr/bin/vacation nobody"
Mail would be forwarded to <nobody@NetBSD.org> and to the program /usr/bin/vacation with the single argument nobody.
If a local user address is prefixed with a backslash character, mail is delivered directly to the user's mail spool file, bypassing further
redirection.
For example, if user chris had a .forward file containing the following lines:
chris@otherhost
chris
One copy of mail would be forwarded to chris@otherhost and another copy would be retained as mail for local user chris.
FILES
$HOME/.forward The user's forwarding instructions.
SEE ALSO
aliases(5), mailaddr(7), sendmail(8)
BSD
July 2, 1996 BSD