Operating System - HP-UX
1831074 Members
2190 Online
110019 Solutions
New Discussion

Re: Running script - Getting Error 'exec(2): could not load a.out'

 
Yudh1
Occasional Advisor

Running script - Getting Error 'exec(2): could not load a.out'

Hi all,

 

My machine is RX2600 with external storage (MSA30) attach to it  Almost 2 months ago the MSA30 was failed and has to replace the drive cage and find out a memory problem, so has to replace its memory. The machine is running well again, but when I try to run some script, I am geeting error 'exec(2): could not load a.out'.

 

My machine is for SAP development server version R/3 4.6C with Oracle database and HPUX, the script I try to run is saposcol, brbackup, brtools, brrestore, etc.

 

Could somebody help me to solve this problem.

 

 

Thanks,

 

Yudi

10 REPLIES 10
Dennis Handly
Acclaimed Contributor

Re: Running script - Getting Error 'exec(2): could not load a.out'

Any more message details with that error?

 

Is it related to this:

http://h30499.www3.hp.com/t5/System-Administration/Exec-2-could-not-load-a-out-error-on-HP-UX-11-13-ia64/m-p/6723648

 

Permission problems with the components in these paths /usr/lib/hpux32/ and /usr/lib/hpux64/?

 

Does anything work at all, for any user?

Yudh1
Occasional Advisor

Re: Running script - Getting Error 'exec(2): could not load a.out'

Hi,

 

I only get that error message,

 

intaqa:oradev 21> saposcol
exec(2): could not load a.out
intaqa:oradev 22> brtools
exec(2): could not load a.out
intaqa:oradev 23> brbackup
exec(2): could not load a.out
intaqa:oradev 24> brrestore
exec(2): could not load a.out
intaqa:oradev 25> brconnect
exec(2): could not load a.out
intaqa:oradev 26>

 

I did not change any permissions.

 

 

Thanks,

Yudi

Dennis Handly
Acclaimed Contributor

Re: Running script - Getting Error 'exec(2): could not load a.out'

>I only get that error message,

 

Hm, that's not helpful at all.

 

What do these say:

echo $SHELL

whence saposcol

file path-to-prog/saposcol

ll path-to-prog/saposcol

 

>I did not change any permissions.

 

Your system as been dead for two months, how do you know what happened?

What commands do work?

Yudh1
Occasional Advisor

Re: Running script - Getting Error 'exec(2): could not load a.out'

Hi,

 

This is what I got :

 

/usr/sap/DEV/SYS/exe/run>echo $SHELL
/sbin/sh
/usr/sap/DEV/SYS/exe/run>whence saposcol
/usr/sap/DEV/SYS/exe/run>file saposcol
saposcol:       ELF-64 executable object file - IA64
/usr/sap/DEV/SYS/exe/run>ll saposcol
-rwsr-xr-x   1 root       sys        1183112 May 14  2012 saposcol
/usr/sap/DEV/SYS/exe/run>

 

 

When my disks got error then I restarted the machine twice as asked by the engineer, and then replaced the memory by engineer, after that waiting for drive cage, after the engineer replaced the drive cage all the disks are working again.

The OS is on the internal disk and that saposcol is on that disks with drive cage problem..

 

 

Thanks,

Yudi

Bill Hassell
Honored Contributor

Re: Running script - Getting Error 'exec(2): could not load a.out'

Do you get error messages when you type these commands?

 

# dmesg
# vgdisplay
# mount -a

What errors do you see in the syslog file (/var/adm/syslog/syslog.log) and the rc startup log (/etc/rc.log)?



Bill Hassell, sysadmin
Yudh1
Occasional Advisor

Re: Running script - Getting Error 'exec(2): could not load a.out'

Hi,

 

I did not see any error on thosse command or log, do you want me to attach the files?

 

 

Thanks,

Yudi

Bill Hassell
Honored Contributor

Re: Running script - Getting Error 'exec(2): could not load a.out'

Yes, attaching the logs and the output from the 3 commands will be useful.

 

You said that you replaced the bad disks. Did you restore the data from backups or were the disks mirrored?



Bill Hassell, sysadmin
Yudh1
Occasional Advisor

Re: Running script - Getting Error 'exec(2): could not load a.out'

Hi,

 

Please find the attached files for command and logs.

 

No I did not replace the disk, I replaced the drive cage, its a box than can fill up to 14 disks.

 

 

Thanks,

 

Yudi

Yudh1
Occasional Advisor

Re: Running script - Getting Error 'exec(2): could not load a.out'

Hi all,

 

Thank you all.

 

I just need to replace all the program from other server, and all are working fine now.

 

 

Thanks,

Yudi

Dennis Handly
Acclaimed Contributor

Re: Running script - Getting Error 'exec(2): could not load a.out'

>I just need to replace all the programs from other server

 

Do you still have the bad ones?  So you can compare good vs bad?