sh: Bad ulimit with atjobs

Conor P. Cahill cpcahil at virtech.uucp
Tue Apr 2 01:34:43 AEST 1991


wolf at grasp1.univ-lyon1.fr (Christophe Wolfhugel) writes:

>I have a strange behavior with at on a SVR3.2: when I use at jobs
>none gets executed and I have return code sh: Bad ulimit.

This problem is cause by the fact that you changed your ulimit in 
/etc/default/login, but did not change it in /etc/conf/cf.d/stune.  
Therefore cron starts with a lower ulimit than users whom login.

When your job is run, you as a normal user, cannot increase the ulimit
beyond what cron has it set to, so you get the error.

There are two ways to fix this.

	1. do it the right way-> change /etc/conf/cf.d/stune, rebuild /unix
	   and reboot 

	2. modify /etc/rc*.d/*cron to set the ulimit before the 
	   cron process is started.

-- 
Conor P. Cahill            (703)430-9247        Virtual Technologies, Inc.
uunet!virtech!cpcahil                           46030 Manekin Plaza, Suite 160
                                                Sterling, VA 22170 



More information about the Comp.unix.questions mailing list