Tag Archives: DB

Help me with s script to find exact match

By JSKOBS

Hi, im extracting data from oracle DB. As the data is case sensitive, i have to extract the data which doesn’t match exactly. im poor in unix scripting, can someone plz help me with a script. Here are the details.

Quote:

file1.csv
————
34 BANDHI
45 Ramonih
789 BALAGAH
921 Revathi


Quote:

file2.csv
———-
Bandhi
Balagah
Vadanga
SRAVAH
Ramonih
Revathi


Need to compare the second column of the each line of the file1.csv with the data in file2.csv file and create a output file only if the exact match is found in file2.csv.
For example, BANDHI in first line of the file1.csv doesn’t exactly match with the Bandhi, so it should ignore. Exact match for ‘Ramonih’ is found in file2.csv so it should take this line. So totally output file should like below.

Quote:

output.csv
———–
45,Ramonih
921,Revathi


Source: FULL ARTICLE at The UNIX and Linux Forums

Help with list of known errors

By SkySmart

i want to know the type of error strings to watch for in any log file, whether it be system log or application log.

yes, i understand that there will be false positives as some errors may not carry as much impact in other organizations. but i would just like to have a list of known strings that have helped many of you long term system admins/application developers identify legit issues.

i’ll start it off.

system related errors:

“kernel.*panic”
“core.*dump”
nfs.*timed out”

(DB) application related errors:

ORA-0600
ORA-06650
ORA-06653

etc

i would appreciate any additional input from anyone.

From: http://www.unix.com/unix-dummies-questions-answers/221713-help-list-known-errors.html

Help with error "por: 0403-012 A test command parameter is not valid."

By blacksteel1988

Hi, im asking for help with the next script:

Code:

echo ^[[32m Mails Pending ^[[37m
VAR1=`query1.sh`

if [ $VAR1 -ge 200 ];
then
if [ $VAR1 -ge 300 ]
then
printf "33[01;31m%s33[00mn" "$VAR1"
else
printf "33[01;33m%s33[00mn" "$VAR1"
fi
else
printf "33[01;32m%s33[00mn" "$VAR1"
fi

echo " "

sleep 30
clear
done;


query1.sh:

Code:

export TERM=vt100
export ORACLE_TERM=at386
export ORACLE_HOME=/home_oracle8i/app/oracle/product/8.1.7
export ORACLE_BASE=/home_oracle8i/app/oracle
export DBVISIT_HOME=/usr/local/dbvisit

PATH=/home_oracle8i/app/oracle/product/8.1.7/bin:/usr/ccs/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME
/bin:/usr/bin/X11:/sbin:$DBVISIT_HOME:.
export PATH
export ORACLE_SID=ORAB817
export DISPLAY=192.9.200.121:0.0
export NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1
export ORA_ENCRYPT_LOGIN=TRUE
set umask=022
sqlplus -s " / as sysdba " @query1.sql


query1.sql:

Code:

set serveroutput on
set feedback off
set head off

SELECT 'MAILS PENDING : ' || COUNT ( * ) "Correo Por Enviar" FRO
M SCHEMA.CSIC_MAILS_fOR_SEND@VIRT.DB.TGU.COM WHERE estado = 0;

exit;


When i execute the script it returns what i want, but before that it always gives me the error “j.sh[224]: por: 0403-012 A test command parameter is not valid.”

From: http://www.unix.com/shell-programming-scripting/221405-help-error-por-0403-012-test-command-parameter-not-valid.html

How can I reorganize the text file content for DB import?

By ckwong99

Dear Madam / Sir,

My Boss need to reorganize :rolleyes: the text file ready for DB import, here show you the requirment and seems not difficult but how to make it by shell script or other programming language effectively.

FILE1 :
user1,location1,location2,locatoin3,seat1,seat2,seat3
user2,location1,seat1
user3
user4,location1,location2,seat1,seat2

After FILE1 conversion, it become as FILE2

FILE2 :
user1,location1,seat1
user1,location2,seat2
user1,location3,seat3
user2,location1,seat1
user3
user4,location1,seat1
user4,locatoin2,seat2

Source: FULL ARTICLE at The UNIX and Linux Forums

Keyera and Plains Solicit Interest in Construction of New Liquids Pipeline System

By Business Wirevia The Motley Fool

Filed under:

Keyera and Plains Solicit Interest in Construction of New Liquids Pipeline System

CALGARY, Canada–(BUSINESS WIRE)– Keyera Corp. (TSX:KEY) (TSX:KEY.DB.A) (“Keyera”) and Plains Midstream Canada ULC, a wholly owned subsidiary of Plains All American Pipeline, L.P. (NYSE:PAA) (“Plains”), announced today they have entered into an arrangement to solicit interest in the construction of a jointly-owned liquids pipeline system in northwest Alberta. The proposed pipeline system, to be called the Western Reach Pipeline System, is anticipated to run from the Gordondale area of northwestern Alberta to Alberta’s natural gas liquids (“NGL“) energy hub in Fort Saskatchewan. Keyera and Plains have begun an open season process seeking non-binding nominations for volumes to underpin construction.

Keyera and Plains anticipate that the Western Reach Pipeline will consist of two new-build pipelines, with one dedicated to a mixture of propane, butane and condensate (“NGL mix”) and the other intended for segregated condensate service. The Western Reach Pipeline, expected to be approximately 570 kilometres in length, will travel through the Deep Basin area of Alberta, which contains some of the most prospective liquids-rich geological horizons being developed in western Canada today, including the Montney and Duvernay zones.

Keyera and Plains believe that separate dedicated pipelines for NGL mix and segregated condensate will benefit customers, avoiding the costs associated with pipelines operating in batch mode. Customers on the Western Reach Pipeline will have the option to direct their NGL mix and segregated condensate to a variety of fractionation, storage, pipeline and terminal facilities at the Fort Saskatchewan energy hub.

The Edmonton/Fort Saskatchewan area is where the majority of Canada‘s NGLs are aggregated for fractionation and subsequent delivery to end-use customers. Both Keyera and Plains have significant NGL fractionation, storage, pipeline and terminal facilities in the Edmonton/Fort Saskatchewan area. These facilities enable customers to access high-value markets for their propane, butane and condensate production. Keyera operates the Fort Saskatchewan Condensate System, consisting of extensive, interconnected condensate pipeline, terminalling and storage facilities that provide customers with access, storage and end-market delivery options. Plains operates an extensive network of pipelines with connectivity to ship NGLs to Plains’ eastern infrastructure assets, which include the Sarnia fractionation and storage facility, the Windsor and St. Clair storage facilities, and the Eastern Delivery Systems. Keyera and Plains are both evaluating expansions of their respective NGL fractionation facilities in Fort Saskatchewan to provide additional fractionation capacity for the growing volumes of NGLs produced in western Canada.

During the first stage of the open season, interested parties are required to complete and execute a confidentiality agreement and non-binding indicative nomination form. Deadline for

Source: FULL ARTICLE at DailyFinance

Baker Teamed with Wadsworth for UDOT I-15 Design-Build Project

By Business Wirevia The Motley Fool

Filed under:

Baker Teamed with Wadsworth for UDOT I-15 Design-Build Project

SALT LAKE CITY–(BUSINESS WIRE)– Michael Baker Jr., Inc., an engineering unit of Michael Baker Corporation (NYSE MKT:BKR), announced that it has been selected, as lead designer teamed with Ralph L. Wadsworth Construction Company, LLC, a subsidiary of Sterling Construction Company, Inc. (NasdaqGS: STRL), for a $22 million, Utah Department of Transportation (UDOT) design-build (DB) project on I-15 in Payson, Utah. Baker’s contract is valued at $2.1 million for a one-year period.

Specifically, the project entails roadway widening and reconstruction of seven miles of I-15 from the South Payson Interchange to the Spanish Fork River. The project also includes widening of eight bridges, providing new pavement at the ramps, installation of noisewalls and upgrading of guardrail. Baker will provide roadway, drainage, structural and traffic design, traffic control plans and design quality management services.

“We are extremely pleased to once again team with Wadsworth on a critical UDOT I-15 project,” said Baker’s Michael Arens, P.E., assistant vice president, principal of the firm’s Salt Lake City (Midvale), Utah, Transportation Group. “We’ve presented several innovative approaches to this project which allowed us to be highly competitive in pursuing the work—this significant win represents both the confidence this important client has in Baker, and the continuation of our success in the Utah DB marketplace.”

Michael Baker Corporation (www.mbakercorp.com) provides engineering, design, planning and construction services for its clients’ most complex challenges worldwide. The firm’s primary business areas are architecture, aviation, defense, environmental, geospatial, homeland security, municipal & civil, oil & gas, rail & transit, telecommunications & utilities, transportation, urban development and water. With more than 3,000 employees in over 100 offices across the United States, Baker is focused on creating value by delivering innovative and sustainable solutions for infrastructure and the environment.

Michael Baker Corporation
David Higie, 412-269-6449

KEYWORDS:   United States  North America  Pennsylvania  Utah

INDUSTRY KEYWORDS:

The article Baker Teamed with Wadsworth for UDOT I-15 Design-Build Project originally appeared on Fool.com.

Try any of our Foolish newsletter services free for 30 days. We Fools may not all hold the same opinions, but we all believe that considering a diverse range of insights makes us better investors. The Motley Fool has a disclosure policy.

Copyright © 1995 – 2013 The Motley Fool, LLC. All rights reserved. The Motley Fool …read more

Source: FULL ARTICLE at DailyFinance

Help in finding last-1-hr exceptions (server wise) using tentakel

By sarah-alikhan31

Code:

[root@server-A]# cat test.sh
#!/bin/sh
dt_1=`date +%h" "%d", "%Y%l -d "1 hour ago"` #Apr 05, 2013 1 --- if ran at 02 AM
dt_2=`date +%p -d "1 hour ago"` # AM|PM
echo $dt_1
echo $dt_2

tentakel -g GROUP "hostname; cat /opt/logs/log.out | grep -A2 "$dt_1:" | grep -v "$dt_2"" > /tmp/test/last_hr_logs.txt

# Here I can grep the txt file for exceptions. But I also need to maintain the list of server/hostname on which the exceptions have been observed.
#cat /tmp/test/last_hr_logs.txt |grep 'Exception'| awk -F'Exception:' '{print $2}'|sort | uniq -c >> /usr/bin/simran/test/Hourly_Exception_Report.txt
[root@server-A]#


Scenario:
I have a server( A) where I want to run this script. This server has passwordless ssh connection to 10 prod. servers .And I can easily run ‘tentakel’ on A, as configured.
This script needs to fetch the last-1-hr exceptions & their count from 10 different log files being generated on these live/prod. servers.
( The name and the location of the log file remains the same on these 10 servers.)
Once I have the exception/count from each of the 10 servers, I can mail it and also dump it on the local DB that I have.

Earlier i thought of finding the no. of lines in a log file with wc -l and use a second wc -l on the log file to find out how many more lines were added
at the time of next run & then just tail the difference and execute ‘tentakel’ to grep -A2 ‘Exception’.
Finally, I would have saved the last wc -l into a separate file for the next run.
something like:

Code:

tentakel -g GROUP "hostname; tail -n $addedLines /opt/logs/log.out | grep -A2 'Exception'" >> /tmp/temp-file


However, saving the last line count in $addedLines is not helping me, since I am using the same script to be executed on 2nd server , 3rd server and so on….in a single instance of script execution :(. The logs on servers-2nd, 3rd.. are obviously not the same and I dont want to use so many variables to keep count on it.

Now, I am using the above(test.sh) solution based on date-timestamps as checkpoints in log files…but stuck & not able to move further
& I have had many versions on this script…
🙁 someone gotto help me on this asap !!

Experts, I definately need help here!!

…read more

Source: FULL ARTICLE at The UNIX and Linux Forums

Accessing files on AIX system from Linux system

By amitnm1106

I have a following requirement in production

system 1 : LINUX
User: abcd

system 2: AIX (it is hosting a production DB)

Requirement
user abcd from system 1 should have read access on archive log files created by DB on system 2. The log files are created with permissions 540 by user ora , group oracle. The log files are not getting created on a shared drive, it is a physical drive on system 2.

The requirement is just to read the log files and not change anything in them.
Following options are ruled out:
1. Shipping files from System 2 to system 1. There is a utility trying to read those file, won’t get access for shipping.
2. Creating same user abcd on system 2 and make it part of system 1.

Note: the two systems are on the same network

can someone help on this ?

…read more

Source: FULL ARTICLE at The UNIX and Linux Forums

Request for Qualifications Issued for Monterey Desal Project

By Business Wirevia The Motley Fool

Filed under:

Request for Qualifications Issued for Monterey Desal Project

California American Water seeks Design-Build firm for the Desalination Component of its Monterey Peninsula Water Supply Project

PACIFIC GROVE, Calif.–(BUSINESS WIRE)– California American Water issued a Request for Qualifications (RFQ) today, the first step in selecting the design-build (DB) contractor for the desalination infrastructure component of its Monterey Peninsula Water Supply Project.

The approximately $400 million water supply project, which is currently under review by the California Public Utilities Commission, will provide water to residents of the Monterey Peninsula through a combination of seawater desalination, aquifer storage recovery and groundwater replenishment. The project is needed to replace current diversions from the Carmel River as ordered by the State Water Resources Control Board in its 2009 Cease and Desist Order. The RFQ pertains only to the desalination portion of the project.

“This desalination project provides an excellent opportunity for qualified firms interested in taking part in one of the most innovative water supply projects in the country,” said California American Water Director of Engineering, Rich Svindland.

The desalination facility, which will be located in Marina, will treat water drawn from subsurface slant wells along the coast. The resulting brine will be discharged to the ocean through the Monterey Regional Water Pollution Control Agency‘s existing outfall.

The content of the RFQ is the result of a collaborative process between the company and members of the Monterey Peninsula Water Supply Project Governance Committee, a local oversight group made up of representatives from the Monterey Peninsula Regional Water Authority, Monterey County Board of Supervisors and the Monterey Peninsula Water Management District.

A copy of the RFQ and more information about the Monterey Peninsula Water Supply Project are available at www.watersupplyproject.org.

California American Water, a wholly owned subsidiary of American Water (NYS: AWK) , provides high-quality and reliable water and/or wastewater services to approximately 600,000 people.

Founded in 1886, American Water is the largest publicly traded U.S. water and wastewater utility company. With headquarters in Voorhees, N.J., the company employs approximately 6,700 dedicated professionals who provide drinking water, wastewater and other related services to an estimated 14 million people in more than 30 states, and parts of Canada. More information can be found by visiting www.amwater.com.

Oracle DB, balancing flash with bulk disks

By Nix_Lover

I’m working as sys admin on a db server that’s currently serviced by 30x 15k disks and is getting about 3000-3500 iops. A consultant has suggested we can replace that with 10x 10k disks and 700g of flash. He has not performed any testing to determine the working set, growth patterns, etc… and I find the suggestion a little hard to comprehend. For what it’s worth, he’s not a DB storage specialist, rather a generalist.

I’m looking for any information from Oracle or EMC on the ratio between the flash tier and the disk tier. Note, ASM and ZFS are not being used in this case, the array will do the tiering in 1g block chunks

…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

PREI® names Morgan Laughlin to lead its Asia-Pacific business

By Business Wirevia The Motley Fool

Filed under:

PREI® names Morgan Laughlin to lead its Asia-Pacific business

TOKYO–(BUSINESS WIRE)– Prudential Real Estate Investors has named Morgan Laughlin head of its Asia business, responsible for managing the company’s operations and strategy in the Asia Pacific region. PREI® is the real estate investment management and advisory business of Prudential Financial, Inc. (NYSE).

Laughlin, based in Tokyo, replaces Victoria Shigehira Sharpe, who has taken a new role with the Global Institutional Relationship Group for Prudential Investment Management. Based in Singapore, she will focus on expanding key client relationships for all of Prudential’s asset management businesses.

“Morgan is an invaluable addition to our global management team, bringing deep experience in building businesses in emerging and developed markets in Asia and a track record that includes managing real estate debt, direct real estate investing, client engagement and regional management,” said Allen Smith, CEO of PREI. “His well-rounded background will help to expand our business as we seek to offer our clients strong investment opportunities in the region, and strengthen our ability to provide Asian investors access to investments around the world.”

PREI had about $8 billion in gross assets under management in Asia ($4.5 billion net) as of December 31, 2012, and has been investing in the commercial real estate markets of Japan, South Korea, Southeast Asia, China, India and Australia since 1994. Operating in the region as Pramerica Real Estate Investors, the company has offices in Tokyo, Singapore, Seoul, Beijing and Hong Kong, and has a representative office in Sydney.

Laughlin joins PREI from Grosvenor Fund Management, where he was most recently a regional director responsible for managing its real estate business Asia Pacific Region. Earlier, he held several roles at the Royal Bank of Scotland, including head of portfolio management, the Japanese business, real estate advisory business and real estate finance. He previously led DB real estate for Asia ex-Japan for Deutsche Bank (RREEF), and worked for Bankers Trust Company and Paine Webber.

Laughlin earned a bachelor’s degree in Latin American Studies from Columbia College. He has lived and worked in the U.S., Japan, Thailand, Singapore and Hong Kong.

PREI is a leader in the global real estate investment management business, offering a broad range of investment vehicles that invest in private and public market opportunities in the United States, Europe, the Middle East, Asia, Australia and Latin America. Headquartered in Madison, New Jersey, PREI has other offices in Atlanta, Chicago, New York, San Francisco, Miami, London, Lisbon Luxembourg, Frankfurt, Munich, Paris, Istanbul, Abu Dhabi, Mexico City, Sao …read more
Source: FULL ARTICLE at DailyFinance

Cyprus Deposit Seizure Hitting Euro and PIIGS Banks

By 24/7 Wall St.

bank vault

Filed under: , , ,

I already have gone on the record that the taxation of deposits in Cyprus is nothing short of theft. Regardless of a bloated banking system that was in shambles, taking depositors’ assets under this method is wrong and it does not just target Russians and offshore depositors evading taxes. It does not even just target the wealthy. This also targets the average person on the ground. The ripples are being felt elsewhere throughout Europe (and here in America) as it poses secondary and tertiary bank and regulatory risks.

Here is how the ADRs of the European banks are being hit in New York trading.

National Bank of Greece S.A. (NYSE: NBG) is at a new 52-week low with a drop of more than 7% to $0.92.

Banco Santander S.A. (NYSE: SAN) is down 4% at $7.47, and Banco Bilbao Vizcaya Argentaria S.A. (NYSE: BBVA) is down 4% at $9.69.

The Bank of Ireland (NYSE: IRE) is down almost 3% at $8.75.

The iShares MSCI Italy Capped Index (NYSEMKT: EWI) represents all of Italy and is down 3% at $12.20, as this nation has no government at the moment and is too big to bail out.

Even the major banking stocks are down: Deutsche Bank A.G. (NYSE: DB) is down 4% at $42.80, UBS A.G. (NYSE: UBS) is down 3% at $15.90, The Royal Bank of Scotland Group PLC (NYSE: RBS) is down 4.3% at $8.87, Lloyds Banking Group PLC (NYSE: LYG) is down 2% at $2.97, Barclays PLC (NYSE: BCS) is down 3.6% at $18.53 and Credit Suisse Group A.G. (NYSE: CS) is down 3.5% at $27.42.

Before you stress too much about this, the impact is being overblown by the doomsday crowd and it is being made fun of as inconsequential by some of the financial media. Cyprus is a nation of 800,000 or so inhabitants with an economy of less than 20 billion euros. Its banking system was extremely large compared to the economy and was in shambles. The nation needs its bailout dollars.

This is just not how to fix things.

Filed under: 24/7 Wall St. Wire, Active Trader, ADR, Banking & Finance, International Markets, Regulation Tagged: BBVA, BCS, CS, DB, EWI, IRE, LYG, NBG, RBS, SAN, UBS

Read | Permalink | Email this | Linking Blogs | Comments

…read more
Source: FULL ARTICLE at DailyFinance

Teva to Present New Research on CNS Product Portfolio and Pipeline at 2013 American Academy of Neuro

By Business Wirevia The Motley Fool

Filed under:

Teva to Present New Research on CNS Product Portfolio and Pipeline at 2013 American Academy of Neurology Annual Meeting

LATE-BREAKING ORAL PRESENTATION PLANNED FOR AZILECT ® (RASAGILINE TABLETS)

JERUSALEM–(BUSINESS WIRE)– Teva Pharmaceutical Industries Ltd. (NYS: TEVA) today announced that 15 abstracts highlighting study results for Parkinson’s disease (PD) and relapsing-remitting multiple sclerosis (RRMS) will be presented during the 65th American Academy of Neurology (AAN) annual meeting in San Diego, Calif., March 16-23, 2013. New data for AZILECT® (rasagiline tablets), an MAO-B inhibitor for the treatment of PD, will be presented as part of the meeting’s Emerging Science program (formerly known as Late-Breaking Science) on Wednesday, March 20th at 5:45pm PST.

“We are pleased with the variety of topics and quality of research results that will be presented at AAN this year,” said Dr. Michael Hayden, President of Global R&D and Chief Scientific Officer at Teva Pharmaceutical Industries Ltd. “Teva’s legacy in CNS is grounded in our commitment to ongoing collaboration with academia, medical institutions, and patient advocacy groups to find innovative solutions for patients who live with chronic and debilitating diseases, such as RRMS and Parkinson’s disease.”

Featured presentations include:

  • Results from a Phase IV clinical study evaluating AZILECT® as Add on to Dopamine Agonists in the Treatment of Parkinson’s disease (ANDANTE).
  • Findings from the first year of follow-up in the Therapy Optimization in Multiple Sclerosis (TOP MS) study, the largest prospective Phase IV study conducted in RRMS, providing insight into the impact of adherence to therapy, as well as data demonstrating that more patients on COPAXONE® (glatiramer acetate) persisted with treatment than those on beta interferon (IFN).
  • Results from the Phase III ALLEGRO study in RRMS at 36 months, comparing the progression of disability and safety of patients treated with laquinimod for three years (Early-Start) and in patients originally treated with placebo in the double-blind (DB) phase and switched to laquinimod treatment (Delayed-Start) in the open-label (OL) phase of the ALLEGRO trial.

Platform Presentation/Poster Session Details:


AZILECT
®

How to retrive data from DB(Aqua studio) in CVS format using UNIX script!!!?

By Mugivz

I am using aqua studio DB. I need to retrive the data from my database using uxin script in .csv format. i am using select query along with the joins. my o/p in the DB is of the below format.

Cycle IDCycle StatusRecord 98N-0000ACV23-3636FCliet Level (Af)Success1689393HF-J7879-09090RCliet Level (Af)Success2356765KD-7HWE747-9I9KPst Leve (Bf)failure45

This is about 120 rows. i need the o/p in .csv format using shell script. I am using bash shell. Couls some one help me on this

…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

DB connection

By saif2825

hi Im unable to find how this script in conencting to DB and which DB and job is scheduled in TWS to run this script.

Any sugggestion where to look for or how to get information.

please find below part of script for DB conenction.

##### SET VARIABLES ##################

rundate=`date +%H%M%b%d%Y`
LOGFILE=/logs/NDM/RSLAUTO.$rundate
BAN_CONF_STATUS=/logs/NDM/BANSTSAUTO.$rundate.$$
BAN_DETAILS=/logs/NDM/BAN_NAME_AUTO.$rundate.$$
homedir=/usr/local/ifs/resell
unsentlogdir=/usr/local/ifs/resell/unsent/logs
rsllogdir=/usr/local/ifs/resell/logs
codelist=”FTP NDM CD”
echo “This Log is for rundate=$rundate” | tee -a $LOGFILE
echo “————————————————–” | tee -a $LOGFILE
echo ” ” | tee -a $LOGFILE

************ Special Code following Database password encryption ***********

DBCODE=CUSTMC
DBMKT=${new_market:-$MARKET}
RUN_MODE=F

. setmarket_sh $DBMKT

status=`sqlplus -s $OP_CONNECT_STRING@$OPERATIONAL_DB_NAME << !

set head off
set line 999
set echo on
set feed on

select username, password, db_instance db_instance_node from dbconfig
where db_connect_code=(select db_connect_code from jobdbconnect
where job_name=’$DBCODE’ and market=’$DBMKT‘ and run_mode=’$RUN_MODE’);
!`
echo $status

echo $status | grep “no rows selected” > /dev/null 2>&1
if [ $? -eq 0 ]
then
echo “You have specified a connect code that does not exists” | tee -a $LOGFILE
exit 1
fi

echo $status | grep “ORA-” > /dev/null 2>&1
if [ $? -eq 0 ]
then
echo “An oracle error has occurred when trying to get db connection from op db” | tee -a $LOGFILE
echo “$CODE_RESULTS” | tee -a $LOGFILE
exit 2

…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

United Tech Wins Turkish F-16 Contract

By Rich Smith, The Motley Fool

Filed under:

On Friday, defense contractor United Technologies announced that its UTC Aerospace Systems subsidiary has won a contract of unspecified value to supply four advanced DB-110 airborne reconnaissance systems, and also three fixed/transportable Imagery Exploitation Systems, for use aboard Turkish Air Force F-16 fighter jets.

The contract, part of the ironically acronymed Turkish Airborne Reconnaissance Program, or TARP, is technically with Turkish defense contractor Aselsan Elektronic Sanayi ve Ticaret, which is ordering the recon systems on behalf of the Turkish Air Force. UTC will additionally be asked to provide training and logistics support services for the devices.

In a statement explaining the award, UTC notes: “The DB-110 digital, real-time, tactical reconnaissance system captures images day and night using electro-optical/infrared sensor technology. Images can then be transmitted in real-time to analysts on the ground as well as viewed on the cockpit video display, enabling the pilots to verify targets and retask based on opportunities revealed during the mission.”

Shares of the parent company, United Technologies, declined 0.5% in Friday trading, closing at $90.13.

The article United Tech Wins Turkish F-16 Contract originally appeared on Fool.com.

Fool contributor Rich Smith and The Motley Fool have no position in any of the stocks mentioned. Try any of our Foolish newsletter services free for 30 days. We Fools don’t all hold the same opinions, but we all believe that considering a diverse range of insights makes us better investors. The Motley Fool has a disclosure policy.

Copyright © 1995 – 2013 The Motley Fool, LLC. All rights reserved. The Motley Fool has a disclosure policy.

(function(c,a){window.mixpanel=a;var b,d,h,e;b=c.createElement(“script”);
b.type=”text/javascript”;b.async=!0;b.src=(“https:”===c.location.protocol?”https:”:”http:”)+
‘//cdn.mxpnl.com/libs/mixpanel-2.2.min.js’;d=c.getElementsByTagName(“script”)[0];
d.parentNode.insertBefore(b,d);a._i=[];a.init=function(b,c,f){function d(a,b){
var c=b.split(“.”);2==c.length&&(a=a[c[0]],b=c[1]);a[b]=function(){a.push([b].concat(
Array.prototype.slice.call(arguments,0)))}}var g=a;”undefined”!==typeof f?g=a[f]=[]:
f=”mixpanel”;g.people=g.people||[];h=[‘disable’,’track’,’track_pageview’,’track_links’,
‘track_forms’,’register’,’register_once’,’unregister’,’identify’,’alias’,’name_tag’,
‘set_config’,’people.set’,’people.increment’];for(e=0;e<h.length;e++)d(g,h[e]);
a._i.push([b,c,f])};a.__SV=1.2;})(document,window.mixpanel||[]);
mixpanel.init("9659875b92ba8fa639ba476aedbb73b9");

function addEvent(obj, evType, fn, useCapture){
if (obj.addEventListener){
obj.addEventListener(evType, fn, useCapture);
return true;
} else if (obj.attachEvent){
var r = obj.attachEvent("on"+evType, fn);
return r;
}
}

addEvent(window, "load", function(){new FoolVisualSciences();})
addEvent(window, "load", function(){new PickAd();})

var themeName = 'dailyfinance.com';
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-24928199-1']);
_gaq.push(['_trackPageview']);

(function () {

var ga = document.createElement('script');
ga.type = 'text/javascript';
ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';

var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ga, s);
})();

<p style="clear: both;padding: 8px 0 0 0;height: 2px;font-size: 1px;border: 0;margin: …read more
Source: FULL ARTICLE at DailyFinance

Error detials in mail

By maddy26615

Hi,

I have a application that writes log details to a file in a folder.
I am trying to write script to send mail to the user whenever the log is appended with “Error” string and details.
The user should receive error and error details in mail whenever there is a error in the file.

The application runs 24X7. It will continuously run and appends log to the file.

File Name
: default.log
sample data in default.log
ERROR: Unable to connect to DB. Please check DB
ERROR: Unable to execute the script. There is some problem.

Please help.

Thanks,
Maddy

…read more
Source: FULL ARTICLE at The UNIX and Linux Forums