From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Tue, 27 Mar 2007 13:33:20 -0400 From: "Russ Cox" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> Subject: Re: [9fans] cron and lib/profile In-Reply-To: <8651978ecfd9dbac02422222459d25ed@voidness.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <627937.472.qm@web56201.mail.re3.yahoo.com> <8651978ecfd9dbac02422222459d25ed@voidness.de> Topicbox-Message-UUID: 337668c2-ead2-11e9-9d60-3106f5b1d025 This is left over from when localcron was a separate program. Then it didn't even create a new name space. It just ran as the local user in the name space in which it started. It would probably make sense to change cron to do: putenv("service", "rx"); execl("/bin/rc", "rc", "-lc", buf, nil); to be more like rexexec. Perhaps $service should be "cron", but "rx" seems okay. Russ