Questions about shell scripts in /etc/periodic/daily

Dan Nelson dnelson at allantgroup.com
Mon Jun 25 21:02:24 UTC 2007


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 at allantgroup.com


More information about the freebsd-questions mailing list