From owner-freebsd-multimedia Sun Jun 14 20:02:50 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA24810 for freebsd-multimedia-outgoing; Sun, 14 Jun 1998 20:02:50 -0700 (PDT) (envelope-from owner-freebsd-multimedia@FreeBSD.ORG) Received: from ns.mexcom.net (ver1-36.uninet.net.mx [200.38.135.36]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA24766 for ; Sun, 14 Jun 1998 20:02:10 -0700 (PDT) (envelope-from eculp@ver1.telmex.net.mx) Received: from mc.mexcom.net (telmex@ppp-7.mexcom.net [206.103.65.199]) by ns.mexcom.net (8.8.8/8.8.7) with SMTP id UAA19726; Sun, 14 Jun 1998 20:59:28 -0500 (CDT) Message-ID: <358481CD.57CF5A08@ver1.telmex.net.mx> Date: Sun, 14 Jun 1998 21:07:09 -0500 From: Edwin Culp Organization: Mexico Communicates, S.A. de C.V. X-Mailer: Mozilla 3.01Gold (X11; I; Linux 2.0.18 i586) MIME-Version: 1.0 To: Cory Kempf CC: freebsd-multimedia@FreeBSD.ORG Subject: Re: Fax, pnmtotiff, "out of memory allocating as array" References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Cory Kempf wrote: > > Help? > I am trying to set up mgetty to receive a fax, convert it to tiff, and > e-mail it out. Mgetty works fine, and I have written a script to > handle creating the mime/e-mail stuffs. > > The core of it is, for each page of fax: > > g32pbm file.fax > file.pbm > pnmtotiff file.pbm > file.tif > > Working as root, I tested it, works fine. I then attempted to receive > a fax, and got the error message > > "pnmtotiff: out of memory allocating an array" > > I try doing it manually, as root, on the same file, with the same > script: no error. I su to the fax account, and get the error. I make > the script suid root, it still errors when run. > > I then tried doing a "limits -d 100m -s 30m -m 100m" in the shell as > the fax user, and was able to manually do the commands. So I stuck > that line in the shell script. > > no joy. > > So, anyone know what I need to do to fix this? > > Thanks, > > +C > Try uping the limits in /etc/login.conf. ed To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message