From owner-freebsd-questions@FreeBSD.ORG Mon Jun 25 21:02:24 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id ABDD216A400 for ; Mon, 25 Jun 2007 21:02:24 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.freebsd.org (Postfix) with ESMTP id 567A413C455 for ; Mon, 25 Jun 2007 21:02:24 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.1/8.13.8) id l5PL2JJC065856; Mon, 25 Jun 2007 16:02:19 -0500 (CDT) (envelope-from dan) Date: Mon, 25 Jun 2007 16:02:19 -0500 From: Dan Nelson To: Olivier Regnier Message-ID: <20070625210219.GD6494@dan.emsphone.com> References: <46802341.6070304@oregnier.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46802341.6070304@oregnier.net> X-OS: FreeBSD 6.2-STABLE User-Agent: Mutt/1.5.15 (2007-04-06) Cc: freebsd-questions@freebsd.org Subject: Re: Questions about shell scripts in /etc/periodic/daily X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jun 2007 21:02:24 -0000 In the last episode (Jun 25), Olivier Regnier said: > Just curiosly, in /etc/periodic/daily, there are many shell scripts but > there is an variable rc by example : > - rc=0 > - rc=1 > - rc=2 > - rc=3 > What exactly does the "rc=0, rc=1 ..." flag mean ? rc stands for "return code"; you can see that each script ends with an "exit $rc" command. See the periodic(8) manpage for a description of what the different numbers represent. -- Dan Nelson dnelson@allantgroup.com