Cron doesn't read $home/lib/profile before executing jobs when host is 'local', but it does when host is named explicitly. See: http://lists.cse.psu.edu/archives/9fans/2007-March/051971.html http://lists.cse.psu.edu/archives/9fans/2007-March/051996.html Notes: Wed Mar 28 12:22:47 EDT 2007 geoff already implemented; will be pushed to sources once it's tested. Reference: /n/sources/patch/sorry/cron-namespace Date: Wed Mar 28 13:19:45 CES 2007 Signed-off-by: hdd@voidness.de Reviewed-by: geoff --- /sys/src/cmd/auth/cron.c Wed Mar 28 00:57:31 2007 +++ /sys/src/cmd/auth/cron.c Wed Mar 28 00:57:26 2007 @@ -512,7 +512,8 @@ _exits(0); } syslog(0, CRONLOG, "%s: ran '%s' on %s", user->name, j->cmd, j->host); - execl("/bin/rc", "rc", "-c", buf, nil); + putenv("service", "rx"); + execl("/bin/rc", "rc", "-lc", buf, nil); syslog(0, CRONLOG, "%s: exec failed for %s on %s: %r", user->name, j->cmd, j->host); _exits(0);