From owner-freebsd-questions Wed Oct 25 10: 8: 8 2000 Delivered-To: freebsd-questions@freebsd.org Received: from nwcst285.netaddress.usa.net (nwcst285.netaddress.usa.net [204.68.23.30]) by hub.freebsd.org (Postfix) with SMTP id 0E6B837B4D7 for ; Wed, 25 Oct 2000 10:08:01 -0700 (PDT) Received: (qmail 2645 invoked by uid 60001); 25 Oct 2000 17:07:58 -0000 Message-ID: <20001025170758.2644.qmail@nwcst285.netaddress.usa.net> Received: from 204.68.23.30 by nwcst285 for [216.72.30.80] via web-mailer(34FM.0700.4.03) on Wed Oct 25 17:07:58 GMT 2000 Date: 25 Oct 00 11:07:58 CST From: Eduardo Huertas To: freebsd-questions@FreeBSD.org Subject: Problem with a shell script X-Mailer: USANET web-mailer (34FM.0700.4.03) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello Everybody! Would somebody please explain me this. I have a shell script that I pretend to use for sending outgoing mail thr= ough serialmail. Because by now I only have one Internet address for my LAN, before sendin= g the outgoing mail the shell script calls a perl program for changing the From= : and Reply-to: local addresses and then calls the procedure to send to the ISP. Here is the shell script: ################ #!/bin/sh = # Para envio de correo externo a traves de serialmail # 205.161.188.24 es la direccion IP del servidor de correo de quik mv /var/qmail/alias/outgoing/new/* /var/qmail/alias/outgoing2/new/ perl /usr/home/eduardo/scripts/chadd10.pl rm /var/qmail/alias/outgoing2/new/*.bk # Envio al isp /usr/local/bin/maildirsmtp /var/qmail/alias/outgoing2 alias-outgoing- 205.161.188.24 \ `hostname` ################# The problem is this: When I execute the shell script being root, everything works fine until calling: /usr/local/bin/maildirsmtp ... Simply does nothing, I mean doesn't send the outgoing mail. Even though t= he shell script finishes. But if I comment the line where perl is executed, the outgoing mail goes = away but without the changes that the perl script does. What's wrong? -edu- ____________________________________________________________________ Get free email and a permanent address at http://www.netaddress.com/?N=3D= 1 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message