Search Results

Search: Posts Made By: lovelysethii
13,970
Posted By bartus11
Kernel patch level is already in the command you...
Kernel patch level is already in the command you provided: Generic_148888-01You can also check /etc/release
5,586
Posted By Little
syntax is proper. but try to replace ...
syntax is proper. but try to replace
end_ct=`sqlplus -s $ORACLE_USER/$ORACLE_PASS@$ORACLE_SID << EOF > sql_output.txt
select trim(description) from bravo_statistics
...
5,586
Posted By Scrutinizer
[$b -eq 1 ] should be [ $b -eq 1 ] . ----...
[$b -eq 1 ] should be [ $b -eq 1 ] .

---- edit: below statement is incorrect as Little pointed out. I somehow missed the >> -----
You are never reading the sql_output.txt file that is created...
5,586
Posted By Little
just send the output to a temporary file instead...
just send the output to a temporary file instead of storing in a variable using

sqlplus -s $ORACLE_USER/$ORACLE_PASS@$ORACLE_SID << EOF > sql_output.txt
select trim(description)...
5,586
Posted By Don Cragun
It may be working, but it is not working...
It may be working, but it is not working properly.

When comparing strings, use the = operator; when comparing numbers, use the -eq operator.

If you want the then code to run only when both...
5,586
Posted By Don Cragun
test1 && test2 evaluates to TRUE if test1...
test1 && test2 evaluates to TRUE if test1 evaluates to TRUE and test2 evaluates to TRUE. (Note that test2 won't be evaluated if test1 evaluates to FALSE.)

test1 || test2 evaluates to TRUE if...
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 01:09 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy