Visit Our UNIX and Linux User Community


Sorting failing cause not known

 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers Sorting failing cause not known
# 1  
Old 06-06-2017
Sorting failing cause not known

Hi All,

Below is the message I am getting and the process is failing after the child process. The exit status is 11 and the job it is doing is sorting. Is it the status 11 is because of space unavailability. I am sure about the status 11.


Quote:
====== INFO ======
Msg: Sorting /tmp/MFILE.TMP


Child process 30795 exited with status 11


Below is the success message I got last on week run

Quote:
====== INFO ======
Msg: Sorting /tmp/MFILE.TMP


Child process 32187 exited with status 0
---------- Post updated at 07:23 PM ---------- Previous update was at 06:00 PM ----------

Below is the process when it is running. nname is the process doing the sort and I see it is running and also in defunct state. Not sure why


Code:
(cv>) r ps
sp 29779 26297  5 08:04 pts/11   00:06:02 /codesort/nname   --unixsort
sp 30210 29779  0 08:04 pts/11   00:00:00 [nname] <defunct>

# 2  
Old 06-06-2017
Only the documentation for that product can tell you what status 11 means. What is it?
# 3  
Old 06-06-2017
Below is the code that is getting the error message

Code:
if(success)
		{
			while((wpid = wait(&status))>0)
			{
				cout<<"Child process " <<wpid <<" exited with status " <<status <<endl <<endl;
				if(status !=0)
				{
					success = false;
				}
			}
		}

# 4  
Old 06-06-2017
Yes, that is code to wait for a child and report status. Did you write the code?
If not how do you know what the exit code of 11 means? Software does not have a universal exit code databse or specification. sysexits notwithstanding (does not have an out of space error - on linux see /usr/include/sysexits.h).

How much space is free in /tmp [and/or] $TMPDIR? Sort packages often respond to environment variables- UNIX sort does - which is why I ask.
This User Gave Thanks to jim mcnamara For This Post:
# 5  
Old 06-06-2017
All that code does is wait for the child process to return. The error is in the child process so the code doesn't help us.
This User Gave Thanks to Corona688 For This Post:

Previous Thread | Next Thread
Test Your Knowledge in Computers #551
Difficulty: Medium
If variable i has the value 10, after x = 5 + (i++); the value of x after this code is 15.
True or False?

10 More Discussions You Might Find Interesting

1. Solaris

Rsync failing

Hi, I am running a rsync command from one server to another server. Source server is having user - bfdeploy and destination user is ftcjbd. Though ftcjbd is owner of /ftc/envs/static/includes/vehicles on destination server, it is still giving error "mkstemp - Permission denied". I am not able to... (4 Replies)
Discussion started by: solaris_1977
4 Replies

2. AIX

Backupios Failing

Hi Team, Please help me to resolve the below backup (backupios) issue on my VIO. My VIO is a SAN booted from EMC and powerpath has been installed on this. We already run pprootdev fix and linked the /dev/ipldevice to rootvg hdisk. ... (2 Replies)
Discussion started by: Nazar_KA
2 Replies

3. Shell Programming and Scripting

ps -ef failing sometimes

Hi Everyone, we have a shell script "DLP_recv.sh" that has below command which is supposed to return the number of active instances of itself, which means of there is no other instance then commad would return 1 (for the current instance). The problem is that it sometimes it returns 0 which is... (3 Replies)
Discussion started by: guycool
3 Replies

4. Shell Programming and Scripting

tty command failing

We have script like this in the .bash_profile.. #-# determine if session is interactive or in background if ]; then while true; do read -p "Do you wish to load profile yes or no?" yn case $yn in * ) source /opt/oracle/.profile; break;; * ) break;; *... (2 Replies)
Discussion started by: talashil
2 Replies

5. UNIX for Dummies Questions & Answers

Help!! Failing HP-UX 11 system disk

Firstly, system setup - HP900 K460, 3 internal hard drives that make up the system volume group(vg00) no software mirroring HP-ux version 11.00 2 Nike 20 raid arrays attached, fully populated with 40 4gb hot swap drives(All used in production environment) I have 3 disks that make up my... (0 Replies)
Discussion started by: rees_a
0 Replies

6. UNIX for Advanced & Expert Users

sudo using at failing.

Hi, I'm hopin' ya can give me an idea or two here. I'm writing a file transfer tracking program. Users login via FTP or https. These users have NO shell access. I'll get to that in a minute. When they upload or download a file, a script is invoked to log the transfer in a database,... (9 Replies)
Discussion started by: mph
9 Replies

7. AIX

failing drive

I posted some errpt output,see Phone Support, that this forum graciously looked at and confirmed what we suspected, that one of our RAID5 disks is failing. I have a replacement, but am having trouble downing the old disk. If I try and run Remove a Disk from smit, it says the device is busy. The... (4 Replies)
Discussion started by: markper
4 Replies

8. Solaris

umount is failing

I am trying to umount a NFS share. When I do the following: # umount syrupg21 umount: /oebs/syrupg21: device is busy device bussy so I like to check what is working on the system.... # fuser -muv /oebs/syrupg21/ # So no locks should be there... any clue? Regards, Johan... (3 Replies)
Discussion started by: suntac
3 Replies

9. Shell Programming and Scripting

ssh - rm failing

Hi, Please help me... I am creating a string of filenames with absolute path and deleting those files situated in the remote server using ssh .. but it doesnot work.. Can anyone help me... here is my code for FileName in ${myDire} do Tmp=`basename... (4 Replies)
Discussion started by: shihabvk
4 Replies

10. HP-UX

dd command failing

I am new to HP-UX. I have an 8GB drive that is my root drive, contained in a Volume Group. I would like to clone that drive to another drive, which is 18.4GB. The other drive is not in a volume group. I am using this simple command:# dd if=/dev/dsk/c0t6d0 of=/dev/dsk/c0t5d0The command... (4 Replies)
Discussion started by: emsecrist
4 Replies

Featured Tech Videos