Exit code 137 on a backup

Thread Tools Search this Thread
Special Forums Hardware Filesystems, Disks and Memory Exit code 137 on a backup
# 1  
Old 06-25-2002
Exit code 137 on a backup

Can some one tell me what it means to get a exit code od 137 from a cron scheduled backup on HP-UX. Also if you know of a book that has the HP-UX codes that would be great.

# 2  
Old 07-16-2002
Backup on HP-UX: err 137

From the man page of fbackup: (no 137)
fbackup returns one of the following values:

0 upon normal completion.

1 if it is interrupted but allowed to save its state for possible

2 if any error conditions prevent the session from completing.

4 if any warning conditions are encountered.

If warnings occur, the operator should check the fbackup logs to
verify the sanity of the backup.

But normally there is some more text or a message in the /var/adm/syslog/syslog.log file.
Does the command run from the command line?
What version of HP-UX is it and what are you running?

# 3  
Old 06-19-2007
Process under HP-UX was killed with return code 137

One process in HP-UX was killed for unknown reason, but our application shell caught the return code 137. Do you know why it's killed? It should not be killed by someone manually, we can see it from the return code.
# 4  
Old 06-19-2007
Originally Posted by hill_0613
One process in HP-UX was killed for unknown reason, but our application shell caught the return code 137.
Did it generate a core dump?

Normally the exit code includes the signal that caused the termination..

          Evaluates to a non-zero value if status  was  returned
          for a child process that terminated due to the receipt
          of a signal.

    WTERMSIG(  stat)
          If the value of  WIFSIGNALED(stat) is  non-zero,  this
          macro  evaluates  to  the  number  of  the signal that
          caused the termination of the child process.

So you would need to look up the macro WTERMSIG on your system in the /usr/include directory and decode 137 to deduce the signal number. Then look up the signal number in sys/signal.h or similar. Look for things like SIGSEGV, SIGKILL etc.

I have a sinking feeling that the macro will say subtract 128 to get the signal number, leaving 9 which is SIGKILL. Which is normally an external intervention and somebody doing "kill -9 pid".
# 5  
Old 03-27-2008
WTERMSIG does ((status) & 0x7f).
When status is 137:
137 & 127 = 9.
asm/signal.h:#define SIGKILL 9

Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Exit code

can anyone tell what the exit status - 137 belongs in unix shell scripting. (3 Replies)
Discussion started by: ramkumar15
3 Replies

2. UNIX for Dummies Questions & Answers

UNIX exit code 11

We have a batch Unix process that runs during the day and it is getting an exit code 11 from Unix. It finishes a sqlplus step and gets the exit code 11 before it starts the next step. This used to happen once a year and now is happening more often (but not every time the process runs). We have... (2 Replies)
Discussion started by: msol
2 Replies

3. Shell Programming and Scripting

rsync backup mode(--backup) Are there any options to remove backup folders on successful deployment?

Hi Everyone, we are running rsync with --backup mode, Are there any rsync options to remove backup folders on successful deployment? Thanks in adv. (0 Replies)
Discussion started by: MVEERA
0 Replies

4. Shell Programming and Scripting

error code 137 and error code 35072

Hi while trying to run few scripts /afs/ae.ge.com/informatica/ardw/dev/bin/cdw_ar_update_recvbal.sh this script contains the below data load_dir=/afs/ae.ge.com/informatica/ardw/dev/data prog_dir=/afs/ae.ge.com/informatica/ardw/dev/bin ctl_dir=/afs/ae.ge.com/informatica/ardw/dev/ctl... (1 Reply)
Discussion started by: laxmi131
1 Replies

5. UNIX for Dummies Questions & Answers

Where can I find a list of exit codes? (Exit code 64)

I'm receiving an exit code 64 in our batch scheduler (BMC product control-m) executing a PERL script on UX-HP. Can you tell me where I can find a list of exit codes and their meaning. I'm assuming the exit code is from the Unix operating system not PERL. (3 Replies)
Discussion started by: jkuchar747
3 Replies

6. Shell Programming and Scripting

All about exit code

Hi, I am working on Solaris 8 and the "intro" man page says, "Upon termination, each command returns two bytes of status, one supplied by the system and given the cause for termination, and (in the case of 'normal' termination) one supplied by the program. The former byte is 0 for normal... (2 Replies)
Discussion started by: cdin2
2 Replies
Login or Register to Ask a Question