From nobody Sun Jun 6 14:57:38 2021 X-Original-To: freebsd-stable@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id E79A5952241 for ; Sun, 6 Jun 2021 14:57:48 +0000 (UTC) (envelope-from torfinn.ingolfsen@getmail.no) Received: from SMTPOUT05.DKA.mailcore.net (smtpout05.dka.mailcore.net [81.7.169.178]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtpout05.dka.mailcore.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FyfkM2RCSz4vbj for ; Sun, 6 Jun 2021 14:57:46 +0000 (UTC) (envelope-from torfinn.ingolfsen@getmail.no) Received: from SMTP.DKA.mailcore.net (DKA-SMTP01.mailcore.local [10.1.0.51]) by SMTPGW.DKA.mailcore.net (Postfix) with ESMTP id 3389C428A9 for ; Sun, 6 Jun 2021 16:57:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wemail.no; s=mailcore; t=1622991459; bh=d1bQwBRuHutjPCVnxdTLargM93RILDKRXsd9DIY2cjY=; h=Date:From:To:Subject:In-Reply-To:References:From; b=J/UMckFdFB3CAFFf5iWl/t95o619VtDfg3F1S+tiLRzaBmmt9EX3CDmrKvIwGAY4R SplNamBBa6EA+3PnNC+iCcBr6pzbSCCDZqt2Ii0ePp6xgjq7VKXRGn6GglQBW6+/yG Jfj2L5dtAFjo8unYZscvfYioWZD84nI7WLx7DtBAcOAgSDUcHaiJTIngn5bTFKzx+K RB0EPN9JZf1pxzy1/IukFghn4mltu421PO1i5XYMiIlgYtq5n8Ca1TuRG40gFd1Y70 P9HRQkUDKFM4KGNJLbTPjBYEoyeTrUi5JKS6OrORSl9NC/PT/8MgCYxW7L9cJxFn+7 tkKuCeNgxGR+A== Received: from kg-core2.kg4.no (unknown [178.74.2.42]) by SMTP.DKA.mailcore.net (Postfix) with ESMTPSA id 1D7BC400E7 for ; Sun, 6 Jun 2021 16:57:39 +0200 (CEST) Date: Sun, 6 Jun 2021 16:57:38 +0200 From: Torfinn Ingolfsen To: freebsd-stable@freebsd.org Subject: Re: cron line continuation? Message-Id: <20210606165738.f944a3649687a4ae09bb3cf6@getmail.no> In-Reply-To: <0d9ed5fb-7b98-8fa5-2429-a00c615afc69@klop.ws> References: <0d9ed5fb-7b98-8fa5-2429-a00c615afc69@klop.ws> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd11.4) List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4FyfkM2RCSz4vbj X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=wemail.no header.s=mailcore header.b=J/UMckFd; dmarc=none; spf=pass (mx1.freebsd.org: domain of torfinn.ingolfsen@getmail.no designates 81.7.169.178 as permitted sender) smtp.mailfrom=torfinn.ingolfsen@getmail.no X-Spamd-Result: default: False [-2.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ip4:81.7.169.128/25]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[wemail.no:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[81.7.169.178:from]; ASN(0.00)[asn:16095, ipnet:81.7.128.0/18, country:DK]; MIME_TRACE(0.00)[0:+]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[wemail.no:s=mailcore]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-stable@freebsd.org]; DMARC_NA(0.00)[getmail.no]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[81.7.169.178:from:127.0.2.255]; MAILMAN_DEST(0.00)[freebsd-stable] X-ThisMailContainsUnwantedMimeParts: N On Sun, 6 Jun 2021 13:56:18 +0200 Ronald Klop wrote: > Hi, > > I'm trying to create a cron entry with line continuation. This document mentions the \ character: > https://docs.freebsd.org/doc/13.0-RELEASE/usr/local/share/doc/freebsd/en_US.ISO8859-1/books/handbook/configtuning-cron.html > > The manual pages do not mention this and I can't get it to work. > > Is this possible? 'man 5 crontab' has this section The ``sixth'' field (the rest of the line) specifies the command to be run. One or more command options may precede the command to modify processing behavior. The entire command portion of the line, up to a newline or % character, will be executed by /bin/sh or by the shell specified in the SHELL variable of the cronfile. Percent-signs (%) in the command, unless escaped with backslash (\), will be changed into newline characters, and all data after the first % will be sent to the command as standard input. HTH -- Torfinn Ingolfsen