Sponsored Content
Full Discussion: << match syntax error
Operating Systems Solaris << match syntax error Post 302250681 by megh on Friday 24th of October 2008 03:33:09 AM
Old 10-24-2008
if [-r /apps/vcr/appl/config/env ]$
then . /apps/vcr/appl/config/env;$
. /apps/vcr/appl/config/env_cust;$
else $
. /apps/vcred/appl/config/env ;$
. /apps/vcred/appl/config/env_cust ;$
$
fi$
$
day_mon=`date +%d`$
day_week=`date +%u`$
SQL_count="select count(*) from vcradmin.mv001ar_cust_mon_prior_yr" #dwspec.ar_customer_daily@ribp.world"$
SQL_sets="set pagesize 5000;$
set echo off;$
set heading off;$
set feedback off;$
set termout off;$
set trimspool on;"$
conn_oracle(){ $
row_cnt=`sqlplus -s $DBUSER/$DBPWD@$DBHOST<< EOF$
$SQL_sets$
$SQL_count$
exit$
EOF` $
echo "total row count is "$row_cnt$
}$
if(($day_mon >= 15 || $day_mon <= 25 && $day_week == 5 )) $
then$
for i in 1 2 3 4 $
do$
$
conn_oracle$
echo "no of row count is $row_count"$
if(($row_cnt >= 1))$
then$
$
echo "database is up and run the code here $row_cnt" $
$
exit$
$
$
else $
$
sleep 10$
continue #call the script here$
echo "data base is up script is going run "$
$
$
fi$
done$
$
else$
echo "It is not 3rd sunday the db is available script runs without DB check"$
fi$
$
$
$
$


I have done cat -vet script as above now i am not getting the result from count(*) from the db.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

awk Shell Script error : "Syntax Error : `Split' unexpected

hi there i write one awk script file in shell programing the code is related to dd/mm/yy to month, day year format but i get an error please can anybody help me out in this problem ?????? i give my code here including error awk ` # date-month -- convert mm/dd/yy to month day,... (2 Replies)
Discussion started by: Herry
2 Replies

2. AIX

nim mksysb error :/usr/bin/savevg[33]: 1016,07: syntax error

-------------------------------------------------------------------------------- Hello, help me please. I am trying to create a mksysb bakup using nim. I am geting this error, how to correct it ? : Command : failed stdout: yes stderr: no... (9 Replies)
Discussion started by: astjen
9 Replies

3. Shell Programming and Scripting

sed error : Syntax error: redirection unexpected

My script is throwing the error 'Syntax error: redirection unexpected' My line of code.. cat nsstatustest.html | sed s/<tr><td align="left">/<tr><td align="left" bgcolor="#000000"><font color="white">/ > ztmp.Ps23zp2s.2-Fpps3-wmmm0dss3 HTML tags are getting in the way but they're needed to... (3 Replies)
Discussion started by: phpfreak
3 Replies

4. Programming

Newbie Question.. -> error: syntax error before ';' token

Hello, the following is generating a error at the line "tmprintf(&tmBundle, _TMC("{0}"),Prompt);"... a bit lost as I am diving into this debug... Thank you in advance... int H_YesNo(TMCHAR *Prompt, int DefVal) { TMCHAR YesNo = '\0'; tmprintf(&tmBundle, _TMC("{0}"),Prompt); while... (3 Replies)
Discussion started by: reelflytime
3 Replies

5. Shell Programming and Scripting

ERROR: ./launch_full_backup.sh[18]: Syntax error at line 28 : `else' is not expected.

Help please! :confused: I have the following error with the following file and the emails are not arriving to the email, any idea please? ERROR: ./launch_full_backup.sh: Syntax error at line 28 : `else' is not expected. FECHA=`date +%d%m%y%H%M`... (2 Replies)
Discussion started by: villenan
2 Replies

6. Shell Programming and Scripting

Receiving error: ./ang.ksh[35]: 0403-057 Syntax error at line 116 : `done' is not expected.

Hi All I am quite new to Unix. Following is a shell script that i have written and getting the subject mentioned error. #!/bin/ksh #------------------------------------------------------------------------- # File: ang_stdnld.ksh # # Desc: UNIX shell script to extract Store information.... (3 Replies)
Discussion started by: amitsinha
3 Replies

7. Shell Programming and Scripting

Syntax to see if two variables match

I have a simple shell script to read create a mysql database as a particular user. Right now, I have the password set as a variable to make sure someone does not mistype the password. I want to take the hard coded password out of the file and make the user input the password twice to make they... (2 Replies)
Discussion started by: bouncer
2 Replies

8. Linux

Ambiguous redirect error and syntax error when using on multiple files

Hi, I need help on following linux bash script. When I linux commands for loop or while loop on individual file it runs great. but now I want the script to run on N number of files so it gives me ambiguous redirect error on line 12 and syntax error on line 22 : (pls help ); #!/bin/bash #... (16 Replies)
Discussion started by: Madhusudan Das
16 Replies

9. Shell Programming and Scripting

IF section problem. syntax error: unexpected end of file error

Hello, I have another problem with my script. Please accept my apologies, but I am really nooby in sh scripts. I am writing it for first time. My script: returned=`tail -50 SapLogs.log | grep -i "Error"` echo $returned if ; then echo "There is no errors in the logs" fi And after... (10 Replies)
Discussion started by: jedzio
10 Replies
asadmin-delete-resource-adapter-config(1AS)			   User Commands		       asadmin-delete-resource-adapter-config(1AS)

NAME
asadmin-delete-resource-adapter-config, delete-resource-adapter-config - deletes the configuration information created in domain.xml for the connector module SYNOPSIS
delete-resource-adapter-config --user admin_user [--password admin_password][--host localhost] [--port 4848][--secure|-s] [--passwordfile filename] [--terse=false] [--echo=false] [--interactive=true] raname Deletes the entry in the resource-adapter-config element of the domain.xml file with the provided --raname. This command is supported in remote mode only. OPTIONS
--user authorized domain application server administrative username. --password password to administer the domain application server. --host machine name where the domain application server is running. --port port number of the domain application server listening for administration requests. --secure if true, uses SSL/TLS to communicate with the domain application server. --passwordfile file containing the domain application server password. --terse indicates that any output data must be very concise, typically avoiding human-friendly sentences and favoring well- formatted data for consumption by a script. Default is false. --echo setting to true will echo the command line statement on the standard output. Default is false. --interactive if set to true (default), only the required password options are prompted. OPERANDS
raname the value kept in the resource-adapter-name in the domain.xml file. Example 1: Using delete-resource-adapter-config asadmin> delete-resource-adapter-config --username admin1 --password adminadmin myresourceadapter Command delete-resource-adapter-config executed successfully EXIT STATUS
0 command executed successfully 1 error in executing the command asadmin-create-resource-adapter-config(1AS), asadmin-list-resource-adapter-configs(1) J2EE 1.4 SDK March 2004 asadmin-delete-resource-adapter-config(1AS)
All times are GMT -4. The time now is 02:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy