DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 467Kds8f3836994 Authentication-Results: delorie.com; dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=v3GnCRVn X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CF73B3860769 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1720384792; bh=4VdqO/RNXU4UcbZeJS8fWxIoVpl0ql+LnXtlIAI1h3A=; h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=v3GnCRVnDaVy02MPLwwMy2qTgre2tdeEqVR17XIWY8N5htQn3R9GmVj7y/6/2tBDI 3zCPWGeZpEuUKlf+5I/M94TUDZiYeLBmw0t/MTuhwFSbMJiyYSosjqbn8pb0YxVFXH rVGAr1L1yYUhAGBt6OSUrp946/g4Me/eevmiDxfk= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4493C385B503 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 4493C385B503 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1720384742; cv=none; b=FznN4PsvuJ9lwELF01Pun6SWYcRVeoHFYUldRt4KzkcZhihXzC6CznCMAA4JOt9tvS4PjdJukPQ7IezPcqjoAVreg2zJTEhwxSytgU02i2qES8f4rd0V2SIwGgM+RSu9bkmb7tpSbJD7fit3YsUvCj/YZoES7yvTYMgATrfbv+c= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1720384742; c=relaxed/simple; bh=wN4rBPfH8Q+uzbdGNJVF36kWnXveRQFNYlLrFormP0k=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=s+vqN10sQAzeWNFMkSgwLzyvqPRexXtYFy8Ge7sNvJ60OhstmN0stcMLayGwmomu0PicsqJA3oanF2rjQ/KohxsjuyiXEI6pSXbbw+dIL1khDyPeB8R6me4NOAv9HczOcmM7YpEO8Tugd/+eQTKRi7Ff5WY1Bb3PWNoKm56pGGY= ARC-Authentication-Results: i=1; server2.sourceware.org X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720384738; x=1720989538; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wN4rBPfH8Q+uzbdGNJVF36kWnXveRQFNYlLrFormP0k=; b=m3ySA2SbfCwSifoosQmy1ayaZSu84nr61oqrEFsQD+gxdmD1dxJLM5rXLOwZ0Y6w6s iV9phmET1lkbY5dljmxiHMqhBjBoGicugznS1NmRD8fLhqbrLINBAGMot8NxOqGyPy3y oNZzRJ6i2h6Q8PPQW8JR0ZeeBbinlbncjwB05ZVDnj1roWjN1bTT8xeR6prB/z+CY8Yt qnnqr76e1IXt09uoB96IJLbR6IYwgQyeGVtwG+KzCTrLlB3skJc4zeepGcq2VEu9YwrD Bvv+QfwiU7ujZfmw58O8c8zYHpsFBG65wRYqbJZVQBRJ8Ov3Wwkb5QWnHzUycfdtf/qJ F7DQ== X-Gm-Message-State: AOJu0YxOz+U1uc2B5QbUYdT0RJN3qbhtQjlofLniy5vPERx72WkLMZYR UBxClBHdNVW5ZDS/fzmMRanXJTB5flvnN/mqPzhjIQl8Iq0ZVZf0Yl/Ifewp7gt8shVDlNiXztr hbikCIBPuoz1kT/5zzktZ7+AmHF3w3q4mK5iSSZQA22Q/E76cuQ== X-Google-Smtp-Source: AGHT+IGZ+j6WIRhsQY0xFcpuHeZIa2vHitTYe9p96GdSXWqDse0aTHbeMePqGjZVKlZsUSPPSYuQRybk+BFxgAZqQFE= X-Received: by 2002:ac2:44d9:0:b0:52b:9e52:17f7 with SMTP id 2adb3069b0e04-52ea077c2d8mr5127102e87.6.1720384738197; Sun, 07 Jul 2024 13:38:58 -0700 (PDT) MIME-Version: 1.0 References: <1688028774 DOT 20240706135038 AT yandex DOT ru> In-Reply-To: <1688028774.20240706135038@yandex.ru> Date: Sun, 7 Jul 2024 21:38:22 +0100 Message-ID: Subject: Re: crontab: no changes made to crontab To: cygwin AT cygwin DOT com X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: Adam Dinwoodie via Cygwin Reply-To: Adam Dinwoodie Content-Type: text/plain; charset="utf-8" Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 467Kds8f3836994 On Sat, 6 Jul 2024 at 12:06, Andrey Repin via Cygwin wrote: > I'm trying to install a new cron job, and the thing fails claiming that it > didn't see the edits I made to the file. > > > > Is there a way around it that does not involve replacing crontab tool with my > own script that has no such issue? I don't have a solution that's not essentially your own script, but FWIW if you install the moreutils package, the following Bash one-liner will do the job and is what I use: crontab -l | tail +4 | vipe | crontab - I haven't bothered writing this as a script, and just have it in memory as the command to use. Or, more accurately, the above without the `tail` part, as I use Vim as my editor and just enter "d3d" as soon as the window launches. If I were going to write a script, though, I'd include that to save those extra three keystrokes… -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple