From owner-freebsd-multimedia Sun Jun 14 08:53:11 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA17845 for freebsd-multimedia-outgoing; Sun, 14 Jun 1998 08:53:11 -0700 (PDT) (envelope-from owner-freebsd-multimedia@FreeBSD.ORG) Received: from enigami.com (enigami.com [208.140.182.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA17833 for ; Sun, 14 Jun 1998 08:53:07 -0700 (PDT) (envelope-from ckempf@enigami.com) Received: from singularity.enigami.com (singularity.enigami.com [208.140.182.42]) by enigami.com (8.9.0/8.9.0) with ESMTP id LAA12140 for ; Sun, 14 Jun 1998 11:52:24 -0400 (EDT) Received: (from ckempf@localhost) by singularity.enigami.com (8.9.0/8.9.0) id LAA24412; Sun, 14 Jun 1998 11:51:47 -0400 (EDT) To: freebsd-multimedia@FreeBSD.ORG Subject: Fax, pnmtotiff, "out of memory allocating as array" From: Cory Kempf Date: 14 Jun 1998 11:51:47 -0400 In-Reply-To: Amancio Hasty's message of "Sun, 14 Jun 1998 02:50:05 -0700" Message-ID: Lines: 38 X-Mailer: Gnus v5.5/XEmacs 20.4 - "Emerald" Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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 -- Thinking of purchasing RAM from the Chip Merchant? Please read this first: Cory Kempf Macintosh / Unix Consulting & Software Development ckempf@enigami.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message