Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Jun 1998 21:07:09 -0500
From:      Edwin Culp <eculp@ver1.telmex.net.mx>
To:        Cory Kempf <ckempf@enigami.com>
Cc:        freebsd-multimedia@FreeBSD.ORG
Subject:   Re: Fax, pnmtotiff, "out of memory allocating as array"
Message-ID:  <358481CD.57CF5A08@ver1.telmex.net.mx>
References:  <x7sol8rnfw.fsf@singularity.enigami.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?358481CD.57CF5A08>