01-20-2012
Hi Aigles,
Thanks for the quick reply. I added all the changes you mentioned.
But, its not working, still the same problem, script exits after line no 20.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I'm trying to implement nested arrays in ksh.
i've the follwing arrays
SRV=\
"SRV1 "\
"SRV2 "
SRV1=\
"MD11 "\
"MD12 "
SRV2=\
"MD21 "\
"MD22 "
MD11=\
"ABC " (5 Replies)
Discussion started by: guysporty
5 Replies
2. UNIX for Dummies Questions & Answers
if ]; then
if ]; then
rm -f ${LOGFILE}.old
fi
mv ${LOGFILE} ${LOGFILE}.old
fi
Havent done nested ifs in a while. I'm reading someones code If I'm reading this correctly. It checks for the logfile, and if it exists it checks for the old logfile and if that exists, it removes the... (8 Replies)
Discussion started by: NycUnxer
8 Replies
3. UNIX for Dummies Questions & Answers
Hi all!
I'm really hoping you can help me out here; now i have searched and searched and have at least worked out that you can't have a nested if statement with a 'done' in it (as i have) as you're killing the parent before the child.
So here's what i have, and here's hoping someone can help... (2 Replies)
Discussion started by: dalgibbard
2 Replies
4. Shell Programming and Scripting
Hi I have a requirement to create a 2 folder based on there existance
if
then
cd $var_name
if
then
cd $var_name3
mv -fi *.* $var_TargetPath/$var_name/$var_name3
else
mkdir -p "$var_name3"
chmod 755 "$var_name3"
mv -fi *.* $var_TargetPath/$var_name/$var_name3
else
mkdir... (7 Replies)
Discussion started by: magesh_bala
7 Replies
5. Shell Programming and Scripting
considering all variables like S01DEPOSITS will return numbers, i am trying to execute below statement
if ]
then
echo "Queue DEP"
fi
while executing above if statement i am getting error as
if : Syntax error at line 100 : `"$1"' is not expected.
pls help as soon as possible thanks (3 Replies)
Discussion started by: sagarrd
3 Replies
6. Shell Programming and Scripting
I have a bash script that has been running (on SUSE 9.3) dozens of times over the past couple of years without error. Recently it has been hitting intermittent “cp: cannot stat FILE: No such file or directory” errors.
The script has nested loops that continuously process files in a... (2 Replies)
Discussion started by: jcart
2 Replies
7. Shell Programming and Scripting
for server in $(echo `cat /tmp/ScanHosts_${USERSNAME}.TXT`)
do
for portnumber in $(echo `cat /tmp/ScanPorts_${USERSNAME}.TXT`)
do
#echo ${server} ${portnumber}
... (3 Replies)
Discussion started by: SkySmart
3 Replies
8. Shell Programming and Scripting
I have two methods...create_2_54 and create_2_55
I have added a nested while loop(previously it has just one loop) in create_2_54
the mv command(which comes first in 2_55) is not working.
for name in `ls -1 1SMH_WICD_V5_2_5*.txt` ; do
mv $name $nametmp.tmp
unix2dos -ascii -437 $nametmp.tmp... (2 Replies)
Discussion started by: harish468
2 Replies
9. Shell Programming and Scripting
Hi,
i m trying to create script which logic is like below.
if ; then
x=`cat /tmp/testoutput.log | grep STOP | wc -l`
y=`cat /tmp/testoutput.log | grep RUN | wc -l`
if ; then
echo "process stop"
if ; then
echo "process running "
else
echo "file not found"
fi
----------------... (2 Replies)
Discussion started by: tapia
2 Replies
10. Shell Programming and Scripting
Hi ALL,
I am receving a "strange" error using a nested if within an sql operation inside:
./dom.ksh: syntax error at line 80 : `then' unmatched
This is all my script code: in bold the step receiving the error.
Any help would really aprrecieted ......!
**** I have tried all the... (2 Replies)
Discussion started by: AndreaCecco
2 Replies
LEARN ABOUT MOJAVE
nsd-checkconf
nsd-checkconf(8) nsd 3.2.12 nsd-checkconf(8)
NAME
nsd-checkconf - NSD configuration file checker.
SYNOPSIS
nsd-checkconf [-v] [-h] [-o option] [-z zonename] [-s keyname] configfile
DESCRIPTION
nsd-checkconf reads a configuration file. It prints parse errors to standard error, and performs additional checks on the contents. The
configfile format is described in nsd.conf(5).
The utility of this program is to check a config file for errors before using it in nsd(8) or zonec(8). This program can also be used for
shell scripts to access the nsd config file, using the -o and -z options.
OPTIONS
-v After reading print the options to standard output in configfile format. Without this option, only success or parse errors are
reported.
-h Print usage help information and exit.
-o option
Return only this option from the config file. This option can to be used in conjunction with the -z option. The special value zones
prints out a list of configured zones.
This option is primarily used by nsdc to parse the config file from the shell. If the -z option is given, but the -o option is not
given, nothing is printed.
-s keyname
Prints the key secret (base64 blob) configured for this key in the config file. Used to help shell scripts parse the config file.
-z zonename
Return the option specified with -o for zone 'zonename'.
If this option is not given, the server section of the config file is used. This option is primarily used by nsdc to parse the con-
fig file from the shell.
The -o, -s and -z option print configfile options to standard output.
FILES
/etc/nsd3/nsd.conf
default NSD configuration file
SEE ALSO
nsd(8), nsdc(8), nsd.conf(5), nsd-notify(8), nsd-patch(8), nsd-xfer(8), zonec(8)
AUTHORS
NSD was written by NLnet Labs and RIPE NCC joint team. Please see CREDITS file in the distribution for further details.
NLnet Labs jul 19, 2012 nsd-checkconf(8)