Date: Thu, 21 Nov 2002 14:29:03 -0800 From: "Paul A. Scott" <pscott@skycoast.us> To: Jeff Penn <jeff@jrpenn.demon.co.uk>, <freebsd-questions@freebsd.org> Subject: Re: Changing to/from user within script Message-ID: <BA029E2F.13E8F%pscott@skycoast.us> In-Reply-To: <20021121221155.GA3926@jrpenn.demon.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
> I want to run a cron job as a user on my system. Once the job has > completed I need root privileges to power the system down. I don't > mind if the script has to run as a root cron job, but running the > processing as a user will prevent against filling a partition. > > Can this be done without running two different cron jobs?. Not sure if I understand the problem, but it seems to me that you can run script as root from cron, and resource limits can be controlled with the shell's 'ulimit' (sh) or 'limit' (csh) commands. -- Paul A. Scott mailto:pscott@skycoast.us http://skycoast.us/pscott/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BA029E2F.13E8F%pscott>