I have tried ksh -v but this put out a massive amount of data that as yet is less than helpful in the problem. So what I really would like to do is be able to read the core file. I wanted to know if anyone know how to read the core file for the kron shell or has compiled the pd ksh in debug.
I have a shell script that is over 6034 lines long and it is coring. Is there any way to read the core so I can narrow down where the error is occuring? Can I rebould the ksh in debug?
Example form gdb of core file....
Core was generated by `/bin/ksh...
MusicSlinger,
There is a brand new web site for AIX users.
http://publib16.boulder.ibm.com/pseries/en_US/infocenter/base/index.htm
Also the is a new book AIX 5L Administration that is pretty good.
For begining UNIX users nothing beats O'Reilly's
"UNIX in a Nutshell"
"Learning...
If you go to http://metalink.oracle.com and check the "Certify & Availability" it tells you most of this information. You do have to get a user id...
When I checked it said that Oracle Server Entriprise Edition 8.1.7 is certified on AIX 5L in 32 bit mode only.
You can get lsof at:
http://www.bullfreeware.com/
It will list all open files. Since most everything in UNIX is a file it can do a lot. For example it can tell you about open sockets. I am pretty sure fuser can't do that.
Here is a little awk script that I think does what you are looking for:
#cat ins.awk
/^QH1/ {print "SYS CODES IDS\' 80CHARACTERS LONG"
print $0}
!/^QH1/ {print $0}
Run it like this:
#awk -f ins.awk file > new_file
This might save you having to add the STARTRECORD and JOIN RECORD.
/BEGIN/ { FLAG = 0 }
/^49035063810000/ { if ( FLAG )
printf("\n")
else
FLAG = 1
printf("%s",$0)
}...
I think this might solve the problem
/STARTRECORD/ { printf("\n%s",$0) }
/JOINRECORD/ { printf("%s",$0) }
One of the Best books on sed & Awk
http://www.oreilly.com/catalog/sed2/
Glad you got it working.
You might want to check out this snippet for future scripts.
awk 'BEGIN{count=0} /COMMERCE/ { print $0;count=count+1 }END{print count}' windsor-life.co.uk
Can't you replace this whole section with something like
grep COMMERCE windsor-life.co.uk | wc -l ??? This will give you a count of line with COMMERCE on them.
Otherwise I would guess that $line is at some point evaluated to blanks or null and the if would look like this
if [ -eq...
Turns out it has nothing to do with the kernel.
Was trying to install Oracle 9.0.1 on AIX 5L. Should have used Oracle 9.0.1.2.
After install of the tarball file got error message
exec(): 0509-036 Cannot load program oracleora9i because of the following errors:
0509-150 Dependent...
The current info I have from Oracle and IBM is that there is a Oracle9i "Developers Release" currently available, but it is unsupported.
The Oracle 9.2 release will support AIX 5L it is due out in the Second Quater of 2002. Or late June.
IBM says that Oracle9i should work on...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.