Operating System - HP-UX
1819778 Members
3119 Online
109607 Solutions
New Discussion юеВ

Re: err6r n40ber 9 - bad f53e n40ber

 
gary seibold
New Member

err6r n40ber 9 - bad f53e n40ber

All,

When attemtimg to pipe a lp command, system return error # 9.

errno.h says 9 is - bad file number.

What is a bad file number, and how do I coreect it.

Any help would be greatly appreciated.

Thanks

Gary S.
2 REPLIES 2
PIYUSH D. PATEL
Honored Contributor

Re: err6r n40ber 9 - bad f53e n40ber

Hi,

This error #9 comes if you have a bad sector in your harddisk and you are not able to access that file.

May be the file which you are printing is not getting accessed. You can check out.

Moreover you can issue the following command on the harddisk where that file resides to find whether your disk has problems or not

dd if=/dev/rdsk/c1t2d0 of=/dev/null bs=512k

If you get ip=op records then your disk is OK or else it has some problems.

HTH,
Piyush
Mark Greene_1
Honored Contributor

Re: err6r n40ber 9 - bad f53e n40ber

if the disk is ok, do an ls - /etc/magic

on my HP_UX 11.0 system it looks like this:

-r--r--r-- 1 bin bin 8770 Nov 7 1997 /etc/magic

you can also run the "file" command on the file you are trying to print to see if it can be correctly identified.

HTH
Mark
the future will be a lot like now, only later