PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Logiciels d'hébergement > comp.mail.sendmail > cidrexpand hangs
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.mail.sendmail Configuring and using the BSD sendmail agent.

cidrexpand hangs

Réponse
 
LinkBack Outils de la discussion
Vieux 13/03/2008, 19h39   #1
jnojr@yahoo.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut cidrexpand hangs

On a CentOS 5 (Final) machine with sendmail-8.13.8-2.el5 installed, I
grabbed the sendmail-8.13.8 source tarball and copied out cidrexpand.
When I run it, though, it just sits and does not return to a command
prompt. It creates a 0 length output file but does nothing else. I
ran a strace, and the last few lines are:

stat64("/usr/lib/perl5/5.8.8/constant.pm", {st_mode=S_IFREG|0644,
st_size=11279, ...}) = 0
open("/usr/lib/perl5/5.8.8/constant.pm", O_RDONLY|O_LARGEFILE) = 6
ioctl(6, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfc99128) = -1 ENOTTY
(Inappropriate ioctl for device)
_llseek(6, 0, [0], SEEK_CUR) = 0
read(6, "package constant;\n\nuse strict;\nu"..., 4096) = 4096
_llseek(6, 3050, [3050], SEEK_SET) = 0
_llseek(6, 0, [3050], SEEK_CUR) = 0
close(6) = 0
read(5, ",\"\\n\" if DEBUG;\n\n # If @$x > 1,"..., 4096) = 4096
read(5, "omething with less\n # than 32 b"..., 4096) = 4096
brk(0x9b41000) = 0x9b41000
read(5, " my $t = \'0b0\'; return $t;\n "..., 4096) = 4096
read(5, " }\n $x;\n }\n\n################"..., 4096) = 4096
_llseek(5, 53434, [53434], SEEK_SET) = 0
_llseek(5, 0, [53434], SEEK_CUR) = 0
close(5) = 0
read(4, "ent array, with $a[0] being \"192"..., 4096) = 4096
read(4, "ffix\";\n }\n\n my @p=grep (/."..., 4096) = 4096
brk(0x9b62000) = 0x9b62000
read(4, " my $i;\n\n my @c;\n\n for ($i"..., 4096) = 4096
read(4, ":0000:0000:dead:beef:0002\",\n\"000"..., 4096) = 4096
brk(0x9b83000) = 0x9b83000
read(4, ";\n\n ($isipv6, $n)=_ipv6to4($n"..., 4096) = 2288
close(4) = 0
read(3, "", 4096) = 0
close(3) = 0
fcntl64(0, F_SETFD, 0) = 0
read(0, <unfinished ...>

Any idea what's wrong?
  Réponse avec citation
Vieux 13/03/2008, 19h53   #2
Andrzej Adam Filip
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: cidrexpand hangs

jnojr@yahoo.com wrote:

> On a CentOS 5 (Final) machine with sendmail-8.13.8-2.el5 installed, I
> grabbed the sendmail-8.13.8 source tarball and copied out cidrexpand.
> When I run it, though, it just sits and does not return to a command
> prompt.
> It creates a 0 length output file but does nothing else. I
> ran a strace, and the last few lines are:
> [...]
> read(0, <unfinished ...>
>
> Any idea what's wrong?


Could you post "command line" you use to run cidrexpand?
Based on the above cidrexpand waits for input via standard input (STDIN).
The cidrexpand perl script reads STDIN unless you give names of input
files via command line.

you may use "per map" command like below to compile access table:
#v+
cd /etc/mail
cidrexpand < access | makemap hash access
#v-

--
[pl>en: Andrew] Andrzej Adam Filip : anfi@priv.onet.pl : anfi@xl.wp.pl
Open-Sendmail: http://open-sendmail.sourceforge.net/
Rap music is just computerised crap. I listen to Top of the Pops and after
three songs I feel like killing someone.
-- George Harrison
  Réponse avec citation
Vieux 14/03/2008, 11h08   #3
Scott Grayban
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: cidrexpand hangs

jnojr@yahoo.com wrote:
> On a CentOS 5 (Final) machine with sendmail-8.13.8-2.el5 installed, I
> grabbed the sendmail-8.13.8 source tarball and copied out cidrexpand.
> When I run it, though, it just sits and does not return to a command
> prompt. It creates a 0 length output file but does nothing else. I
> ran a strace, and the last few lines are:
>


What I use is.....

$ cat /usr/sbin/fix-cidr
#!/bin/sh
/usr/sbin/cidrexpand < /etc/mail/access | makemap -r hash /etc/mail/access

I run that after I add any new cidr's.
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 02h57.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,11285 seconds with 11 queries