![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| trouble executing and running on BSD from DG | Gerry405 | BSD | 6 | 12-10-2005 09:02 PM |
| Trouble using substr function with Bourne shell script | E2004 | Shell Programming and Scripting | 4 | 09-29-2005 11:57 AM |
| Running a script. | vcardo10 | UNIX for Dummies Questions & Answers | 2 | 12-29-2003 07:31 AM |
| trouble with script | whegra | Shell Programming and Scripting | 4 | 10-17-2002 02:48 PM |
| running a script? | jtredway | UNIX for Dummies Questions & Answers | 2 | 09-12-2001 12:08 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
HI admin unix,
I'm from indonesia that currently work as system admin for server under AIX/UNIX environment. I have some trouble when running script as follow : ## vdate() { sqlplus -s ${MMUSER}/${PASSWORD} <<-eot|grep -v '^$' set heading off feedback off select to_char(vdate,'YYYYMMDD') from period; eot } cek1() { sqlplus -s ${MMUSER}/${PASSWORD}@${ORACLE_SID}<<-eot|grep -v '^$' set heading off feedback off echo off SELECT count(1) FROM item_loc a LEFT OUTER JOIN item_supp_country b ON a.item = b.item AND a.primary_supp =b.supplier WHERE a.item_parent IS NOT NULL AND loc = (SELECT like_store FROM store_add) AND supp_pack_size IS NULL AND primary_supp IS NOT NULL; eot } cek2() { sqlplus -s ${MMUSER}/${PASSWORD}@${ORACLE_SID}<<-eot|grep -v '^$' set heading off feedback off echo off SELECT TRIM (COUNT (1)) FROM (SELECT DISTINCT item FROM item_loc il WHERE loc IN (SELECT like_store FROM store_add) AND item_parent IS NOT NULL MINUS SELECT DISTINCT item FROM vat_item vat); eot } CplkStore() } sqlplus -s ${MMUSER}/${PASSWORD}@${ORACLE_SID}<<-eot|grep -v '^$' set heading off feedback off echo off SELECT store||'-'||like_store FROM store_add; eot ) recCplkStore=`CplkStore` recCek1=`cek1` recCek2=`cek2` textCplkStore="`date '+%h %d %r'`: Copy Like Store: " textCek1="`date '+%h %d %r'`: Data Item/Loc Supplier belum lengkap : ${recCek1}" textCek2="`date '+%h %d %r'`: Data Item VAT belum lengkap: ${recCek2}" echo "Copy like Store: `echo ${recCplkStore}|awk -F '-' '{print $1}'` from store `echo ${recCplkStore}|awk -F '-' '{print $2}'`" echo "testing" if [ "${recAfter}" != "0" ] then echo "There are some errors found in MPP_STG_MSM20_PSH table!" exit 1 else echo "MSM20 finished successfully." exit 0 fi the result is : "Segmentation Fault (core dump)" i already unlimited coredumpsize, memory size but error is still remain : "Segmentation fault" (coredump is already gone) Can anyone help me for that ? Thanks. Cahyo |
| Bookmarks |
| Tags |
| awk, awk trim, trim, trim awk |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|