The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Loop problem with one more problem aliahsan81 Shell Programming and Scripting 2 09-23-2008 02:52 AM
problem in finding a hardware problem girish.batra SUN Solaris 8 09-09-2008 07:10 AM
ssh script problem problem pcjandyala Shell Programming and Scripting 2 07-31-2008 12:27 PM
problem with dd command or maybe AFS problem Anta Shell Programming and Scripting 0 08-25-2006 07:10 AM
SSH Problem auth problem budrito UNIX for Advanced & Expert Users 1 03-17-2004 07:12 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 09-26-2008
Registered User
 

Join Date: Sep 2008
Posts: 17
makemap problem

I have been running "/usr/sbin/makemap hash /etc/mail/access < /etc/mail/access' for years now with no problem. Suddenly I am getting a hang on it. I have the following permissions of the files:

20 -rw-r--r-- 1 root other 9667 Sep 26 19:19 access
0 -rw-r--r-- 1 root other 0 Sep 26 16:10 access.db

I am at a loss. Is there a way to debug makemap that I am unaware of? Perhaps a parser for the access file?

Mike
Reply With Quote
Forum Sponsor
  #2  
Old 09-26-2008
Registered User
 

Join Date: Sep 2008
Posts: 17
OK, here's what I did. I had an old access.db file available - I moved it into the empty access.db's place and ran makemap with the -v flag. Voila, it made the database as it should. I dunno why, but it worked.

Mike

"It never fails to amaze me how little I actually know and how much less I understand" - Me
Reply With Quote
  #3  
Old 09-26-2008
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,298
makemap includes sysexits.h

IF you read sysexits.h you will see various values and what there meaning is - example:EX_USAGE (64) is returned when parameters are bad for example. Check the return value and see what the problem is. IF you get a value, then run makemap under strace and locate what system call it is choking on. Most of the time it has been EX_CANTCREATE for me. strace illuminates the problem file that cant be opened.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 04:11 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0