From nobody Mon Jun 7 08:58:43 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 EFB0F13CB196 for ; Mon, 7 Jun 2021 08:58:47 +0000 (UTC) (envelope-from tom@samplonius.org) Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Fz6jf6ShNz4Wqt for ; Mon, 7 Jun 2021 08:58:46 +0000 (UTC) (envelope-from tom@samplonius.org) Received: by mail-pl1-x62d.google.com with SMTP id b12so2287869plg.11 for ; Mon, 07 Jun 2021 01:58:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samplonius-org.20150623.gappssmtp.com; s=20150623; h=from:mime-version:subject:date:references:to:in-reply-to:message-id; bh=zdB0zBd7liKumshNi5F02Ue8yndVAp6Ca7/BSEztY48=; b=JwLv15zjTiRfFRv1UGbmfDika7ZsdU9qPi/e/eIS/EdZXyMYhI50ThieG7dIGq66e/ dPVcLIHmQBX67JW3FphOEFo7TF036lAqOWbnuAnyQiBw9Ea5ZGUInhBguhF7LdpDkAHs jEju9YFEyXf6BsRmLU4vvprW6WYK4of7KBaIrqIkvtHigltgbcZH3nKA5WYfXv35q7nR 94CYXQnVXe9UbqVUDm49SpLf23JNMk2X1T14vcvjEt+A2DP9fxaJqMjjPoS+f62qAaV9 e54Vghr767l4sv3xVrtiUqn/w4xTzES7LHvWlpKLncTfL/Wd8AGqEZDa1xvw7N19QhMt 3ueg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:date:references:to :in-reply-to:message-id; bh=zdB0zBd7liKumshNi5F02Ue8yndVAp6Ca7/BSEztY48=; b=GWUCLkygfYZuaWBGpOlfZhbA3b5PL/Iq3LLeeXGxHUg8Xu/DKmejO2U14jzMORvg2J 8pfQYRA4xBTSVZ5ypLnQTTDh+osWHHR0QaoDXExafAxUDkLiukrjx2u6zwJm1mP6+juC 8IsRSx0dtOgUuy8AAHNZ4vL4lUX3EUe+L6jl6PQU/9+dB4ON2hoZQWbmtpCeGbpQa3Ez 3pHEb7c2JKuAF9YVILLd4ck2xWavHdUR79BlLMeU5JaiSHlO92pTHPUPhxh1JnrWoKY1 t3WoDpy8CD10KbzEuzM9mlpwU+DfMbnSztqFlx3F9IDV+iN2CO6qjIj8pH1pAk+NRN/0 Nccg== X-Gm-Message-State: AOAM5303xLOKUylhlxCo1IyxmAeF8KqszrD88N9Dp4+6j1b34eO3NUDv FJpz5kc6HvCfLSYYzCtIq7NyEfHfkt4jFz9b6jE= X-Google-Smtp-Source: ABdhPJyFdx71/lCEe9U/FfaFa8ShuBhmPz11cjDOQvKk2ykp+F0EgYa5P6FXuuGbsJyLQCi49und6w== X-Received: by 2002:a17:90a:520f:: with SMTP id v15mr18953144pjh.23.1623056324954; Mon, 07 Jun 2021 01:58:44 -0700 (PDT) Received: from smtpclient.apple (S0106e48d8c53b080.vc.shawcable.net. [24.80.47.133]) by smtp.gmail.com with ESMTPSA id 190sm8610776pgd.1.2021.06.07.01.58.44 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Jun 2021 01:58:44 -0700 (PDT) From: Tom Samplonius 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 (Mac OS X Mail 14.0 \(3654.100.0.2.22\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_3A184214-ADF6-4941-B308-545123C1419C" X-Priority: 3 (Normal) Subject: Re: cron line continuation? Date: Mon, 7 Jun 2021 01:58:43 -0700 References: <0d9ed5fb-7b98-8fa5-2429-a00c615afc69@klop.ws> <20210606165738.f944a3649687a4ae09bb3cf6@getmail.no> <50183224.330.1623051742099@localhost> <8C2E306D-032F-4224-B03F-194C30E13D43@develooper.com> To: freebsd-stable@freebsd.org In-Reply-To: <8C2E306D-032F-4224-B03F-194C30E13D43@develooper.com> Message-Id: <536D5FEC-DA23-4502-A161-D910D6805E16@samplonius.org> X-Mailer: Apple Mail (2.3654.100.0.2.22) X-Rspamd-Queue-Id: 4Fz6jf6ShNz4Wqt X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=samplonius-org.20150623.gappssmtp.com header.s=20150623 header.b=JwLv15zj; dmarc=none; spf=none (mx1.freebsd.org: domain of tom@samplonius.org has no SPF policy when checking 2607:f8b0:4864:20::62d) smtp.mailfrom=tom@samplonius.org X-Spamd-Result: default: False [-1.80 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; MV_CASE(0.50)[]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[samplonius-org.20150623.gappssmtp.com:+]; NEURAL_HAM_SHORT(-1.00)[-0.999]; HAS_X_PRIO_THREE(0.00)[3]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::62d:from]; RECEIVED_SPAMHAUS_PBL(0.00)[24.80.47.133:received]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[samplonius-org.20150623.gappssmtp.com:s=20150623]; FREEFALL_USER(0.00)[tom]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-stable@freebsd.org]; DMARC_NA(0.00)[samplonius.org]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::62d:from:127.0.2.255]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::62d:from]; R_SPF_NA(0.00)[no SPF record]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-stable] X-ThisMailContainsUnwantedMimeParts: Y --Apple-Mail=_3A184214-ADF6-4941-B308-545123C1419C Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Jun 7, 2021, at 12:51 AM, Ask Bj=C3=B8rn Hansen = wrote: >=20 >=20 >=20 >> On Jun 7, 2021, at 00:42, Ronald Klop wrote: >>=20 >> which is much better readable. I can't get this to work so the = documentation might be inconsistent. >=20 > I don=E2=80=99t think cron supports escaping newline. You can escape % = as described, but (as you know) that=E2=80=99s something else. >=20 > The standard solution to this is not to write programs in the cron = config. Write a script or program elsewhere and have cron execute it. >=20 Yes, =E2=80=9C\=E2=80=9D as a continuation character is not supported. = The cron manpage is correct (no mention of using \ for anything but an = escape character). The = https://docs.freebsd.org/doc/13.0-RELEASE/usr/local/share/doc/freebsd/en_U= S.ISO8859-1/books/handbook/configtuning-cron.html = page is incorrect. I=E2=80=99ve also checked the source at = https://github.com/freebsd/freebsd-src/blob/373ffc62c158e52cde86a5b934ab4a= 51307f9f2e/usr.sbin/cron/lib/entry.c There is no code to merge lines = ending with a \ into a single command. And I agree, for a large number of sequential commands, a shell is = going to superior is every way. You could also add error recovery, etc. > Ask --Apple-Mail=_3A184214-ADF6-4941-B308-545123C1419C--