From owner-freebsd-questions Tue Jun 10 07:35:37 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id HAA07748 for questions-outgoing; Tue, 10 Jun 1997 07:35:37 -0700 (PDT) Received: from mail.EUnet.hu (www.eunet.hu [193.225.28.100]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id HAA07688 for ; Tue, 10 Jun 1997 07:35:17 -0700 (PDT) Received: by mail.EUnet.hu, id QAA17344; Tue, 10 Jun 1997 16:34:36 +0200 Received: (from zgabor@localhost) by CoDe.hu (8.7.5/8.7.3) id QAA00403; Tue, 10 Jun 1997 16:17:47 +0200 (MET DST) From: Zahemszky Gabor Message-Id: <199706101417.QAA00403@CoDe.hu> Subject: Re: .forward/procmail help To: freebsd-questions@freebsd.org (FreeBSD questions) Date: Tue, 10 Jun 1997 16:17:47 +0200 (MET DST) Cc: archie@whistle.com In-Reply-To: <199706052033.NAA20769@bubba.whistle.com> from Archie Cobbs at "Jun 5, 97 01:33:34 pm" X-Mailer: ELM [version 2.4ME+ PL11 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > I have a situation I can't figure out... whenever the number of processes > on my machine reaches around 80, sendmail can't deliver mail to my account > ("unknown mailer error 2") when I have .forward set to pipe mail into a > process. Sometimes the bounce will contain a "Cannot fork" error. > It's as if some mysterious number of processes limit is being hit. ..... > > Is there an equivalent of csh's "limit" command in sh that I need to use? > Of course, the name of the command is: ulimit. (man 1 sh) Gabor -- #!/bin/ksh Z='21N16I25C25E30, 40M30E33E25T15U!' ;IFS=' ABCDEFGHIJKLMNOPQRSTUVWXYZ ';set $Z;for i { [[ $i = ? ]]&&print $i&&break;[[ $i = ??? ]]&&j=$i&&i=${i%?};typeset -i40 i=8#$i;print -n ${i#???};[[ "$j" = ??? ]]&&print -n "${j#??} "&&j=;typeset +i i;};IFS=' 0123456789 ';set $Z;X=;for i { [[ $i = , ]]&&i=2;[[ $i = ?? ]]||typeset -l i;X="$X $i";typeset +l i;};print "$X"