From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: mcron service Date: Fri, 24 Jun 2016 14:00:44 +0200 Message-ID: <87shw27qbz.fsf@gnu.org> References: <20160430192744.1fbe081f@scratchpost.org> <871t5lc432.fsf@gnu.org> <20160517192857.0bab0560@scratchpost.org> <877fdgs4hv.fsf_-_@gnu.org> <20160624075926.03c6d198@scratchpost.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58366) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGPn1-0006OW-VT for guix-devel@gnu.org; Fri, 24 Jun 2016 08:00:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bGPmx-00027U-2o for guix-devel@gnu.org; Fri, 24 Jun 2016 08:00:51 -0400 In-Reply-To: <20160624075926.03c6d198@scratchpost.org> (Danny Milosavljevic's message of "Fri, 24 Jun 2016 07:59:26 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Danny Milosavljevic Cc: guix-devel@gnu.org Hello, Danny Milosavljevic skribis: > I tried it out and can confirm that it still works. Nice! Thanks for testing! > Just curious, how would I specify the user to run the job under now? Using Mathieu=E2=80=99s mcron branch (the =E2=80=98mcron2=E2=80=99 package,= which is the default here), this is done via #:user, so: #~(job '(next-hour '(1)) do-something #:user "danny") I=E2=80=99ll add an example of this in the manual. > How do I read the guix texinfo manual (using info) when the manual is not= installed (i.e. read directly from the git checkout)? Using the standalone Info reader, you can run: info -f ./doc/guix.info and using Emacs: C-u C-h i ./doc/guix.info RET > (Also, I wonder whether it would make any sense to be able to specify a l= ist of packages that have to be installed because of the scheduled job(s). = Otherwise it could for example be that updatedb isn't available, right?) I kept this example simple, but if you want to make sure it finds =E2=80=98updatedb=E2=80=99, you can write it as: #~(job =E2=80=A6 (string-append #$findutils "/bin/updatedb --foo")) And if you want to avoid issues related to shell quoting: #~(job =E2=80=A6 (lambda () (execl (string-append #$findutils "/bin/updatedb") "updatedb" "--foo"))) HTH! Ludo=E2=80=99.