Processing multiple files (environment setting)


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Processing multiple files (environment setting)
# 1  
Old 02-18-2016
Processing multiple files (environment setting)

Hello

I posted on here a while ago about processing multiple files within a script.
See original post below:

I have a program cfxfrwb which is designed to remove headers from reports files.
The cfxfrwb is located in the following directory /u01/efin/v40/live/bin

I run the program against a single report file in the temp directory and it does it's job.
Code:
./cfxfrwb /home/efin/efintran/temp/cli_r02r0051.prt

I'd like to run the ./cfxfrwb against several report files.

I modified a script I found on the web but it doesn't seem to work
Code:
#!/bin/bash
FILES=/home/efin/efintran/temp/*
for f in $FILES
do cfxfrwb
  echo "Processing $f file..."
  # take action on each file. $f store current file name
  cat $f
done

I'd be grateful if someone could offer some assistance.

Many thanks

The problem was solved by using the following:
Code:
#!/bin/bash
FILES=/home/efin/efintran/temp/*
for f in $FILES
do 
/u01/efin/v40/live/bin/cfxfrwb $f
echo "Processing $f file..."
# take action on each file. $f store current file name

We have recently upgraded our systems and my script has stopped working again. We have different file paths.
The cfxfrwb program will work if it runs against files individually

for example /u01/efin/v42/live/bin/cfxfrwb act_r09r3817.prt ...this processes the file act_r09r3817.prt as expected and removes it's header.

when it is executed within the script it returns an error:
Code:
Removing headers from report files \n
./efdsx_trans: line 209: 18443 Segmentation Fault      (core dumped) /u01/efin/v42/live/bin/cfxfrwb $f
Processing /export/home/efin/efintran/temp/act_r09r3814.prt file...

We have discovered that the cfxfrwb program will only work when the environment has been set. I have looked at the settings within the environment and included them in my script but it still returns core dump errors.

Anyone have any ideas?
Many thanks


Moderator's Comments:
Mod Comment Please use code tags for your code and data, thanks

Last edited by vbe; 02-18-2016 at 11:44 AM.. Reason: code tags
# 2  
Old 02-18-2016
My crystal ball is in the repair shop today. Without seeing the code that is dropping core, seeing how the environment being used by the code that is dropping core is established, and the context in which that code is being run; it is going to be difficult for most of us to guess at what is wrong.
# 3  
Old 02-18-2016
Hello Don

Thanks for the reply

Here are the environmental settings we set which will allow the cfxfrwb program to work when processing an individual file:

Code:
ALTORATAB=/cedar/efin/bin/oratab
ANumber=1
ATarget=pre-live
BASEPATH=/usr/sfw/bin:/usr/ccs/bin:/usr/local/bin:/usr/sbin:/usr/bin:/bin
C='\c'
CFXHOME=/cedar/efin/v42/live
CFXSVMODE=2
CFXTAB=/cedar/efin/bin/cfxtab.tab
Choice=1
DEV2K_HOME=/cedar/oracle/Middleware/Oracle_FRHome1
DISPLAY=''
ERRNO=25
FCEDIT=/bin/ed
FORMS_PATH=/cedar/efin/v42/live/lib
FORMS_TERMINAL=/cedar/efin/v42/live/bin
HOME=/export/home/efin
IFS='
'
LC_CTYPE=en_GB.ISO8859-15
LC_MESSAGES=C
LC_MONETARY=en_GB.ISO8859-15
LC_NUMERIC=en_GB.ISO8859-15
LC_TIME=en_GB.ISO8859-15
LD_LIBRARY_PATH=dummy:/cedar/oracle/Middleware/Oracle_FRHome1/lib:/cedar/oracle/Middleware/Oracle_FRHome1/jdk/jre/lib/amd64/native_threads:/cedar/oracle/Middleware/Oracle_FRHome
1/jdk/jre/lib/sparcv9/native_threads:/cedar/oracle/Middleware/Oracle_FRHome1/jdk/jre/lib/sparcv9/server
LINENO=1
LOGNAME=efin
MAIL=/var/mail//efin
MAILCHECK=600
N=''
NLSPATH=dummy:/cedar/efin/v42/live/bin/%N
OLDPS1='[hrbs01efinas]$PWD>'
OLDPWD=/export/home/efin
OPTIND=1
ORACLE_DOC=/cedar/oracle/Middleware/Oracle_FRHome1/odoc
ORACLE_HOME=/cedar/oracle/Middleware/Oracle_FRHome1
ORACLE_INSTANCE=/cedar/oracle/Middleware/asinst_1
ORACLE_SID=EFINL
ORACLE_TERM=vt220
ORATAB=/cedar/efin/bin/oratab
PATH=/cedar/efin/v42/live/bin:/cedar/oracle/Middleware/Oracle_FRHome1/bin:/usr/sfw/bin:/usr/ccs/bin:/usr/local/bin:/usr/sbin:/usr/bin:/bin
PPID=28503
PS1='hrbs01efinas-efin-pre-live>'
PS2='> '
PS3='#? '
PS4='+ '
PWD=/cedar/efin/v42/live
RANDOM=10625
RDBMS_HOME=/cedar/oracle/Middleware/Oracle_FRHome1/
SECONDS=141
SECURITYID=security/security
SHELL=/bin/ksh
SSH_CLIENT='192.168.1.195 55524 22'
SSH_CONNECTION='192.168.1.195 55524 192.168.3.106 22'
SSH_TTY=/dev/pts/2
TERM=xterm
TMOUT=0
TNS_ADMIN=/cedar/oracle/Middleware/asinst_1/config
TWO_TASK=EFINL
TZ=GB
TheChoice=1
USER=efin
_=set


Below is the entire script

Code:
# Script to copy latest efin Reports V403 to a new file for today
  and then transfer them to Datastore
#
# Mar 2013 BM
#
DSDIR=/app/MSS/PROD/print_outs/ds export DSDIR
TODAY=`date '+%b%d'` export TODAY
MONTH=`date '+%b%y'` export MONTH
HOST='192.168.1.22'
USER='xxxxxx'
PASSWD='xxxxx'
#
clear
#
echo "Moving previous EFIN file to /u01/efin/v40/live/report/archive/bon.\n"
#
cd /export/home/efin/efintran/temp
#
mv * /u01/efin/v42/live/report/archive/bon
#
echo ""
#
echo "Done.\n"
#
# Change to home directory /jrie
#
echo "Moving to efin user reports folder \n"
#
cd /u01/efin/v42/live/report/jrie
#
echo "Transfering e-fin reports to temporary folder \n"
#
cp cli_r02*.prt /export/home/efin/efintran/temp
#
cp cli_r04*.prt /export/home/efin/efintran/temp
#
cp act_r07r*.prt /export/home/efin/efintran/temp
#
cp act_r09r*.prt /export/home/efin/efintran/temp
#
cp act_r90r*.prt /export/home/efin/efintran/temp
#
cp act_r92r*.prt /export/home/efin/efintran/temp
#
cp act_r93r*.prt /export/home/efin/efintran/temp
#
cp act_r38r*.prt /export/home/efin/efintran/temp
#
echo ""
#
echo "Done.\n"
#
cd /u01/efin/v42/live/bin
#
echo ""
#
echo "Removing headers from report files \n"
#
#!/bin/bash
FILES=/export/home/efin/efintran/temp/*
for f in $FILES
do
/u01/efin/v42/live/bin/cfxfrwb $f
  echo "Processing $f file..."
  # take action on each file. $f store current file name
done
#
echo "Sticking files together \n"
#
cd /export/home/efin/efintran/temp
#
cat cli_r02*.prt > /export/home/efin/efintran/temp/efinr02$TODAY
#
cat cli_r04*.prt > /export/home/efin/efintran/temp/efinr04$TODAY
#
cat act_r07r*.prt > /export/home/efin/efintran/temp/efin$TODAY
#
cat act_r09r*.prt >> /export/home/efin/efintran/temp/efin$TODAY
#
cat act_r90r*.prt >> /export/home/efin/efintran/temp/efin$TODAY
#
cat act_r92r*.prt >> /export/home/efin/efintran/temp/efin$TODAY
#
cat act_r93r*.prt >> /export/home/efin/efintran/temp/efin$TODAY
#
cat act_r38r*.prt >> /export/home/efin/efintran/temp/efin$TODAY
#
echo "Removing empty spaces from efin files \n"
#
sed '/^$/d' efinr02$TODAY > efinr02a$TODAY
#
sed '/^$/d' efinr04$TODAY > efinr04a$TODAY
#
sed '/^$/d' efin$TODAY > efinall$TODAY
#
rm efinr02$TODAY
#
rm efinr04$TODAY
#
rm efin$TODAY
#
echo "*** Connecting to the DSX Server for file transfer *** \n"
#
ftp -n -v $HOST <<EOF
type ascii
user $USER $PASSWD
cd ..
cd efin
put efinr02*
put efinr04*
put efinall*
bye
/
EOF
#



Basically this script:
goes into a user's directory,
copies some report files to a temp directory,
attempts to process the files using cfxfrwb (which strips out the headers of the report files),
Cats the files together,
FTPs the files over to a document archive device.

As mentioned before , setting the enviroment above will allow cfxfrwb to process an individual report file but it errors when processing a directory full.

Someone mentioned that the #!/bin/bash statement will override the environment settings (I tried removing it and it still errored). I have also tried just setting the enviroment and manually executing
Code:
FILES=/export/home/efin/efintran/temp/*
for f in $FILES
do
/u01/efin/v42/live/bin/cfxfrwb $f
done

still errors.

Many thanks for having a look.
Maybe I'm missing something obvious here..I don't know.

---------- Post updated at 01:33 PM ---------- Previous update was at 01:30 PM ----------

Sorry...I used the wrong code tag...Could a moderator please amend my tags if possible?

Thanks

Last edited by Don Cragun; 02-18-2016 at 06:47 PM.. Reason: Change most ICODE tags to CODE tags.
# 4  
Old 02-18-2016
First: You don't need a moderator to edit your post for you. (Although I was happy to edit your script for you this time.) There is an "Edit" button in the lower right corner of every post you submit. You can click on that button and edit your own post.

Second: You have now shown us the script that is calling the script that is dropping core. But you have not shown us the script that is calling something on line 209 that is dropping core. We need to see the script named efdsx_trans )which is the script that the diagnostic messages you showed us in post #1 in this thread came from.
# 5  
Old 02-19-2016
Hello Don

The name of the script is
Code:
efdsx_trans

It's a bit misleading as I edited the script before posting (it goes into about 5 different user's accounts to retrieve files, I trimmed out 4 of the users).

I've edited the script now so that it is the same as the one in the previous post.
Code:
Moving previous EFIN file to /u01/efin/v40/live/report/archive/bon.


Done.

Moving to efin user reports folder

Transfering e-fin reports to temporary folder

cp: cannot access act_r07r*.prt

Done.


Removing headers from report files

./efdsx_trans[63]: 488 Segmentation Fault(coredump)
Processing /export/home/efin/efintran/temp/act_r09r3814.prt file...
./efdsx_trans[63]: 489 Segmentation Fault(coredump)
Processing /export/home/efin/efintran/temp/act_r09r3816.prt file...
./efdsx_trans[63]: 492 Segmentation Fault(coredump)
Processing /export/home/efin/efintran/temp/act_r09r3817.prt file...
./efdsx_trans[63]: 497 Segmentation Fault(coredump)
Processing /export/home/efin/efintran/temp/act_r09r3825.prt file...
./efdsx_trans[63]: 505 Segmentation Fault(coredump)
Processing /export/home/efin/efintran/temp/act_r09r3827.prt file...
./efdsx_trans[63]: 513 Segmentation Fault(coredump)
Processing /export/home/efin/efintran/temp/act_r09r3860.prt file...
./efdsx_trans[63]: 517 Segmentation Fault(coredump)
Processing /export/home/efin/efintran/temp/act_r09r3869.prt file...


Thanks again for looking
# 6  
Old 02-19-2016
Quote:
Originally Posted by captainrhodes
Hello Don

The name of the script is
Code:
efdsx_trans

It's a bit misleading as I edited the script before posting (it goes into about 5 different user's accounts to retrieve files, I trimmed out 4 of the users).

I've edited the script now so that it is the same as the one in the previous post.
Code:
Moving previous EFIN file to /u01/efin/v40/live/report/archive/bon.


Done.

Moving to efin user reports folder

Transfering e-fin reports to temporary folder

cp: cannot access act_r07r*.prt

Done.


Removing headers from report files

./efdsx_trans[63]: 488 Segmentation Fault(coredump)
Processing /export/home/efin/efintran/temp/act_r09r3814.prt file...
./efdsx_trans[63]: 489 Segmentation Fault(coredump)
Processing /export/home/efin/efintran/temp/act_r09r3816.prt file...
./efdsx_trans[63]: 492 Segmentation Fault(coredump)
Processing /export/home/efin/efintran/temp/act_r09r3817.prt file...
./efdsx_trans[63]: 497 Segmentation Fault(coredump)
Processing /export/home/efin/efintran/temp/act_r09r3825.prt file...
./efdsx_trans[63]: 505 Segmentation Fault(coredump)
Processing /export/home/efin/efintran/temp/act_r09r3827.prt file...
./efdsx_trans[63]: 513 Segmentation Fault(coredump)
Processing /export/home/efin/efintran/temp/act_r09r3860.prt file...
./efdsx_trans[63]: 517 Segmentation Fault(coredump)
Processing /export/home/efin/efintran/temp/act_r09r3869.prt file...


Thanks again for looking
OK. So, now that the output from the script shown above comes from the script you showed us, we can now get a better idea of what is going on. And specifically, the diagnostics of the form:
Code:
./efdsx_trans[Line#]: Process-ID Segmentation Fault(coredump)

as in:
Code:
./efdsx_trans[63]: 488 Segmentation Fault(coredump)

Tells us that Process ID 488 dropped core due to a segmentation fault and that it was invoked from line # 63 in the script efdsx_trans which is:
Code:
/u01/efin/v42/live/bin/cfxfrwb $f

and, from the echo statement on line #64 in that script, we know that $f expanded to /export/home/efin/efintran/temp/act_r09r3814.prt this time through the loop.

So, now you need to look at cfxfrwb and find out why it is dropping core as it processes that file. So, if you can't track down the problem with this new information, show us the source for that utility and the stack trace from the core dump it produced when it died.
# 7  
Old 02-20-2016
Hello

cfxfrwb looks like this...no idea if that is of any use.


Code:
[hrbs01efinas]/u01/efin/v42/live/bin>vi cfxfrwb
"cfxfrwb" [Incomplete last line] 188 lines, 42360 characters (17997 null)
^?ELF^B^B^A^F^A^B+^A^A^T\210@\236x@8^F@^\^[^F^E@^A@^AP^AP^C^D^A\220^A^A\220^Y^Y^A^E^A\@\@^P^A^G\@^A^P\@^YÀ^\@^P^B^Gdè^A^Pdè^B\220ddåP^D^A°^A^A°^L^L^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ccfxEnvVarRegisterSetTraceSwitchfseekmalloc_Jv_RegisterClassesatexitlocaltimemainGetCurrentThreadId__register_frame_info
_startstrcpystrncasecmphex_dumpMT_PROCEDURE_LINKAGE_TABLE_fclose_lib_versionrewind_finicfxEnvVarfgetsstrchrpthread_selfsprintferrnovfprintf_init_etextstrcmpcfxtracecfxtraceMTTra
ceFileChangedstrncmp_DYNAMICGetCfacsProfileStringExSleepcfxtraceFilenamestrcasecmp__iobgetenv__deregister_frame_infoWriteCfacsProfileStringEx__dso_handleasctimeTraceSwitchValue_
exit_GLOBAL_OFFSET_TABLE__edatasqlcx2strcatremovehex_dumpcfx_fetch_info_from_formcfxtrace2sleep_endstrncpycfxiemdifftimelibc.so.1SUNW_1.1SUNW_0.7libsocket.so.1libnsl.so.1libclnt
sh.so.11.1libm.so.2libresolv.so.2/usr/sfw/lib^A^B^B¶^P
='\221^B^BÀ^P
=(\227^D^C^BÉ^C^A^C^A^C^C^C^A^A^C^C^C^C^A^A^A^C^C^A^A^C^A^C^A^A^A^C^C^B^C^C^C^A^A^C^A^A^A^C^A^A^A^C^A^C^C^C^A^A^C^A^C^C^A^A^A^A^C^C^A^A^C^A^C^A^C^A^C^A^P_^X^L^T^A^P_82^T^A^P_ ^Q
^T^A^Pxx^B^S^A^P_00^T^A^P_(!^T^A^P`\200^M^U^A^P`*7^U^A^P`À8^U^A^P`à2^U^A^Pa^Q^U^A^Pa ^L^U^A^Pa@^S^U^A^Pa`E^U^A^Pa\200 ^U^A^Pa*^E^U^A^PaÀ
^U^A^Paà^G^U^A^Pb^A^U^A^Pb ^W^U^A^Pb@>^U^A^Pb`5^U^A^Pb\200G^U^A^Pb*^F^U^A^PbÀ^N^U^A^PbàA^U^A^Pc^C^U^A^Pc -^U^A^Pc@"^U^A^Pc`=^U^A^Pc\200^_^U^A^Pc*C^U^A^PcÀ^^^U^A^Pcà1^U^A^Pd^]^U^
A^Pd )^U^A^Pd@^Y^U^A^Pd`^T^U^A^Pd\200/^U^A^Pd*%^U^A^PdÀ^K^U¼^P à[¨^?¢^C¨\207\234#*0\200\220^A^Bh^D\220^P^A@^D^R÷^A^S\222^R`^A\223*p ^Q^U\220^R!Ä\220^R  @^D^Rï^A@^P7^A\220^P^P\22
2^P^Q\225, ^C\224^B*^H\224^D@
^Y\230^S ^A\231+0 ^W^D^^\226^Ràx\226^RÀ^LÔrÀ@`^A@^D^Rå^A@^D^Rë^A\201Ãà^H®^CÀ^W\235ã¿@#/^D^Q^?ÿÿû®^Eã^P\202^T`^XÈ]À^AÊ   \200¡`^R@^]^C\202^P` Â]À^AÈX@ÈY"Á^L^C*^P^AÂ\\202`^H\237ÁÂ
tÂ\ÈX@
ù?ü\202`^H^C\202^PbøÈ]À^A^BÁ^E^C\202^P`^H@^D^RÏÐ]À^A\202^T`^X\210^P ^AÊ]À^AÈ)@\201Ïà^H^A\235ã¿@\201Ïà^H^A\235ã¿@        /^D^Q^?ÿÿЮ^Eâd^K^[\210^Q"à\212^Q`^HÂ]À^D^BÀ@^E\232^S`^PÐ
]À^E@^D^R¿Ò]À^M^C^K\202^P`(ð]À^AÈ^^BÉ^G\212^QbØÂ]À^E^BÀ@^D^A@^D^R»\201è^A\201Ïà^H^A\235ã¿@\201Ïà^H^A\235ã¿@\201Ïà^H^A\235ã¿@\201Ïà^H^A\235ã¿@\201Ïà^H^A\235ã¿@\201Ïà^H^A\235ã¼À\2
02^P^Xòw¨\207Â'¨^?À'§[^C        ^D^]\202^P`^A\203(p \202@^D\202^Pb<Âw¥\207À'¥\203\220^P d@^Fí^A\202^P^H
È@
^A\220^P D@^Fç^A\202^P^H
È@^D^A^Ph^D^A\202^P ^AÂ'¥\203Â^G¥\203È_¥\207Â!\220^P D@^FÚ^A\212^P^H^C  ^D^]\202^P`^A\203(p \202@^D\202^Pb8Ê @^C        ^D^]\202^P`^A\203(p \202@^D\202^Pb<Â@\200*`^BH^^^A^C    ^
D^Z\202^P`^A\203(p \202@^D\212^P`Ø^C    ^D^Z\202^P`^A\203(p \202@^D\232^P`à^C   ^U\202^P`^A\203(p \202@^D\220^Paø^C     ^U\202^P`^A\203(p \202@^D\222^Pb^HÔY@Ö[@@^C^T^A\212^G§_\2
10^P ^HÂ_¨\207\202^A^A\220^P^EÒX@@^D^RX^A\212^G¥\217\210^P ^HÂ_¨\207\202^A^A\220^P^EÒX@\224^P ^L@^D^RW^AÀ/¥\233\202^G¦ß\212^G¥\217\220^P^A^C    ^U\202^P`^A\203(p \202@^D\222^Pb
\224^P^E@^D^RR^A^C      ^D^]\202^P`^A\203(p \202@^D\202^Pb<Â@\200*`^BH(^A^C     ^D^Z\202^P`^A\203(p \202@^D\212^P`Ø^C   ^D^Z\202^P`^A\203(p \202@^D\232^P`à\230^G§_\236^G¦ß\210^P
 ^HÂ_¨\207\202^A^AÂX@Âs¨¯\202^G¥\217Âs¨·^C      ^U\202^P`^A\203(p \202@^D\220^Paø^C     ^U\202^P`^A\203(p \202@^D\222^Pb(ÔY@Ö[@\232^P^O@^BÆ^A\202^G§_\220^P^A^C ^U\202^P`^A\203(p
 \202@^D\222^Pbh@^D^R ^A\202^P^HÂw§ßÂ_§ß
@
@
@
"cfxfrwb" [Incomplete last line] 188 lines, 42360 characters (17997 null)
^A4ä^AÄ^E^Q^A^W^A^Pxp^D^E^Y^B
^A9\214^Al^E-^A^W^A^Pv\220^D^E^N^B
^AJ\220^C\^A\237^B
^A4Ä^L^E;^A^V^A^Puø^H^ED^B
^A<d    <^A³^A^R^A^Pq^XK^E[^A^W^A^Pwpÿ^Ee^A^W^A^Pwh^H^C7^A^R^A^Pp QX^Dÿñ^Eq^A^T^A^Puà^E\203^B
^AUP^E~^B
^AU\234^E\231^A^S^A^PuÐ\217^A^R^A^PuÀ^E¦^A^U^A^Puè^E²^A^Q^A^Pgx^EÀ^Dÿñ^EÕ^R^A^Pb^EÛ^Q^W^A^Pxx^H^Eä^R^A^Pc^EÜ!^W^A^Pxx^H^Eë^R^A^Pa*^Eñ^R^A^Pb*^Eø^R^A^Paà^Eþ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ailpThisFunction.4C1377253256_cfxboot_hcfx_vers_cfxfrwb_cC1377253
264_cfxos_h.0C1377253264_cfxos_hC1377253264_cfxsv_h.2C1377253264_cfxsv_hC1377253256_cfxboot_h.3gbTrSummaryC1377255167_cedar_h.1cfxbiem.ccfx_vers_cfxbiem_ccfxtrace.c.LLC10.LLC11.
LLC12.LLC13.LLC14.LLC15.LLC16.LLC17.LLC18UserNamedFileNameelapsed.4.LLC0.LLC1.LLC2.LLC3.LLC4.LLC5.LLC6.LLC7.LLC8.LLC9new_time.5old_time.6cfx_vers_cfxtrace_ccreate_timestampunixg
en.cC1377253264_cfxos_h.1C1377253274_cfthread_h.4C1377253274_cfthread_hC1377255167_cedar_h.0cfx_vers_unixgen_ctraceswi.cGetSwitchListcfx_vers_traceswi_cSLBuffer.4envvar.ccfx_ver
s_envvar_ccdrenv.c__register_frame_infomanage_symbol.LLC19.LLC20.LLC21.LLC22.LLC23.LLC24.LLC25.LLC26.LLC27.LLC28.LLC29.LLC30.LLC31.LLC32.LLC33.LLC34.LLC35.LLC36.LLC37.LLC38.LLC3
9.LLC40.LLC41.LLC42.LLC43.LLC44read_profile_file_lineclose_profile_filecfx_vers_cdrenv_cbufferappend_profile_filesymbol_headopen_profile_file_atdo_startupcreate_profile_filesumm
ary_traceprognameoverwrite_profile_fileret_buf.4File_Handle__DTOR_END__call___do_global_ctors_aux__CTOR_END____JCR_END____FRAME_END__crtn.s_END__START_fputc_environstrlenfopenme
mcpyfgetccfxEnvVarRegisterSetTraceSwitchfseekmalloc_Jv_RegisterClassesatexitlocaltimemainGetCurrentThreadId_startstrcpystrncasecmphex_dumpMT_PROCEDURE_LINKAGE_TABLE_fclose_lib_v
ersionrewind_finicfxEnvVarfgetsstrchrpthread_selfsprintferrnovfprintf_init_etextstrcmpcfxtracecfxtraceMTTraceFileChangedstrncmp_DYNAMICGetCfacsProfileStringExSleepcfxtraceFilena
mestrcasecmp__iobgetenv__deregister_frame_infoWriteCfacsProfileStringEx__dso_handleasctimeTraceSwitchValue_exit_GLOBAL_OFFSET_TABLE__edatasqlcx2strcatremovehex_dumpcfx_fetch_inf
o_from_formcfxtrace2sleep_endstrncpycfxiemdifftime@(#)SunOS 5.10 Generic 123647-02 Feb 2008@(#)SunOS 5.10 Generic 123647-02 Feb 2008@(#)SunOS 5.10 Generic January 2005@(#)SunOS
5.10 Generic 123647-02 Feb 2008as: SunOS 5.10 118683-06 Patch 07/01/2010
GCC: (GNU) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)as: SunOS 5.10 118683-06 Patch 07/01/2010
GCC: (GNU) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)as: SunOS 5.10 118683-06 Patch 07/01/2010
GCC: (GNU) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)as: SunOS 5.10 118683-06 Patch 07/01/2010
GCC: (GNU) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)as: SunOS 5.10 118683-06 Patch 07/01/2010
GCC: (GNU) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)as: SunOS 5.10 118683-06 Patch 07/01/2010
GCC: (GNU) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)as: SunOS 5.10 118683-06 Patch 07/01/2010
GCC: (GNU) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)@(#)SunOS 5.10 Generic 123647-02 Feb 2008@(#)SunOS 5.10 Generic 123647-02 Feb 2008ld: Software Generation Utilities - Solaris L
ink Editors: 5.10-1.1505.interp.eh_frame_hdr.hash.dynsym.dynstr.SUNW_version.SUNW_versym.SUNW_reloc.rela.plt.text.init.fini.rodata.got.dynamic.eh_frame.data.ctors.dtors.jcr.data
.rel.local.bss.symtab.strtab.comment.shstrtab^A^A^B^A^A\220^A\220^Y^A   ^A^B^A^A°^A°^L^H^W^E^B^A^AÀ^AÀ^BD^D^H^D^]^K^B^A^D^H^D^H^FÀ^E^A^H^X%^C"^A

---------- Post updated at 12:11 PM ---------- Previous update was at 12:10 PM ----------

Don, could you please show me how to obtain the stack trace from the core dump?

Many thanks
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Processing multiple files

Hello I have a program cfxfrwb which is designed to remove headers from reports files. The cfxfrwb is located in the following directory /u01/efin/v40/live/bin I run the program against a single report file in the temp directory and it does it's job../cfxfrwb... (2 Replies)
Discussion started by: captainrhodes
2 Replies

2. Shell Programming and Scripting

Passing multiple files to awk for processing in bash script

Hi, I'm using awk command in bash script. I'm able to pass multiple files to awk for processing.The code i can use is as below(sample code) #!/bin/bash awk -F "," 'BEGIN { ... ... ... }' file1 file2 file3 In the above code i'm passing the file names manually and it is fine till my... (7 Replies)
Discussion started by: shree11
7 Replies

3. Shell Programming and Scripting

Processing multiple files awk

hai i need my single awk script to act on 4 trace files of ns2 and to calculate througput and it should print result from each trace file in a single trace file. i tried with the following code but it doesnt work awk -f awkscript inputfile1 inputfile2 inputfile3 inputfile4>outputfile ... (4 Replies)
Discussion started by: sarathyy
4 Replies

4. Shell Programming and Scripting

multiple groups of files processing

I have five directories, dir1 to dir5 for each directory, I have all same number-named folders. There are four types of folders, {1..10}, {20..30}, { 40..50}, {60..70} Now for each types of folder, I will do the same thing, here is the code for i in {1..5} do cd dir$i mkdir temp1 for... (5 Replies)
Discussion started by: ksgreen
5 Replies

5. UNIX for Dummies Questions & Answers

Setting up your environment

Hi I am new to Solaris and was just given my id and need to setup my environment, what do i need to do to run certain commands without putting in the complete path. How do I create my .profile, I do not see under my login? Any help would be greatly appreciated. (5 Replies)
Discussion started by: sa_ken
5 Replies

6. UNIX for Dummies Questions & Answers

single output of awk script processing multiple files

Helllo UNIX Forum :) Since I am posting on this board, yes, I am new to UNIX! I read a copy of "UNIX made easy" from 1990, which felt like a making a "computer-science time jump" backwards ;) So, basically I have some sort of understanding what the basic concept is. Problem Description:... (6 Replies)
Discussion started by: Kasimir
6 Replies

7. UNIX for Dummies Questions & Answers

Multiple excel files processing on unix

Hi all, I am faced with a rather unusual problem regarding interaction between NT and UNIX. I am using an ETL (Extract-Transform-Load) tool on unix that has the capability to read .xls files. So, when I FTP an excel (.xls) file from a windows server to unix and attempt to read it with this... (3 Replies)
Discussion started by: ucode_2482
3 Replies

8. Shell Programming and Scripting

Processing Multiple Files

Hello Everyone, I am new to scripting and confused with how to do this efficiently. I am trying to use AWK to do this. I have a lot of files in a folder which has the data of my throughput measurements in two columns i.e. Serial # and Throughput. like this 177.994 847.9 178.996 ... (1 Reply)
Discussion started by: hakim
1 Replies
Login or Register to Ask a Question