DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 466B5Udi3181307 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=KSNcGakU X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3F3E33830B60 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1720263928; bh=t+a/szYDZ4RVo8HLKRMlKGJcUiUlsfKdY3elFLLXS+E=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=KSNcGakUiNz9TUpLQ+SxiSIethcffcuHFjFEPeis4tNUO9i3bx20SISV0N/eFJCp7 OprLV8+e89jLqwRbp66IJNlk9wSngflh8QPdcbm6GrCgDfzVesrAg84fs17Lz2dVfj lOt8JUeNlzpfmdPjEG4dBUPtI+NOpleDRQZ0Ritc= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 650163858C98 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 650163858C98 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1720263907; cv=none; b=VhtmakpeUBOpTikS+vnZyI4yxYYsV/l1NYYZl7+ZmOX7NMyTJg68mASK/jQCeKHVYI2mcTDtZShwVJeBCEW31PsDUcrOH2yjBHQC3vE86zzF6fBeBEbVf2teHBKszHCOZwItdNcXwEM7ZfKxp7fFHPHE+olHIlrNlf5Ubj0I7gg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1720263907; c=relaxed/simple; bh=6Sv1MKUHZJz01rEvCuEC82Ovxr1aWCxpUaX0+vBxZiY=; h=DKIM-Signature:Date:From:Message-ID:To:Subject:MIME-Version; b=liJTJLi8NhySMw4uOLu6+8SlGnd/egH3S1GZKDkqUGNGVbban0vFWsBkeukiOxJYfQKHoC2dqaFXNIyUGkkxeSl9PaGmjv7cTtvcqCsoUjCvOhCUZsGcBvQJBpSk3y5t/OeNuqU9cKg6GwH5Xl09YMOFXM5YHaNOoSaQ/e5eu5U= ARC-Authentication-Results: i=1; server2.sourceware.org X-Yandex-Fwd: 1 Date: Sat, 6 Jul 2024 13:50:38 +0300 X-Mailer: The Bat! (v9.3.4) Professional Message-ID: <1688028774.20240706135038@yandex.ru> To: All Subject: crontab: no changes made to crontab MIME-Version: 1.0 X-Spam-Status: No, score=0.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_THEBAT, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_PASS, TXREP, XM_LIGHT_HEAVY autolearn=no 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: Andrey Repin via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Andrey Repin Content-Type: text/plain; charset="cp1251" Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 466B5Udi3181307 Greetings, All! 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. >> # echo "USER=$USER" | crontab - >> >> # crontab -l >> # DO NOT EDIT THIS FILE - edit the master and reinstall. >> # (- installed on Sat Jul 6 13:35:43 2024) >> # (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $) >> USER=anrdaemon >> >> # crontab -e >> ### do some edits… >> crontab: no changes made to crontab Piping a new file to the crontab works, but that's "slightly" cumbersome. What is it missing why it does not want to just work? -- Few moments later… --- It seems crontab dislikes safe file writes. >> $ stat x > 1; nano x; stat x > 2; diff -u0 1 2 >> --- 1 2024-07-06 13:44:36.448756500 +0300 >> +++ 2 2024-07-06 13:44:46.793312000 +0300 >> @@ -5,3 +5,3 @@ >> -Access: 2024-07-06 13:43:53.343129900 +0300 >> -Modify: 2024-07-06 13:41:09.178803500 +0300 >> -Change: 2024-07-06 13:41:09.178803500 +0300 >> +Access: 2024-07-06 13:44:46.174586500 +0300 >> +Modify: 2024-07-06 13:44:45.168108900 +0300 >> +Change: 2024-07-06 13:44:45.168108900 +0300 >> >> $ stat x > 1; $EDITOR x; stat x > 2; diff -u0 1 2 >> --- 1 2024-07-06 13:46:31.604731900 +0300 >> +++ 2 2024-07-06 13:46:37.348451500 +0300 >> @@ -3 +3 @@ >> -Device: 30371,22662 Inode: 65020719620177911 Links: 1 >> +Device: 30371,22662 Inode: 65302194596888567 Links: 1 >> @@ -5,3 +5,3 @@ >> -Access: 2024-07-06 13:44:46.792312100 +0300 >> -Modify: 2024-07-06 13:44:45.168108900 +0300 >> -Change: 2024-07-06 13:44:45.168108900 +0300 >> +Access: 2024-07-06 13:46:35.198257000 +0300 >> +Modify: 2024-07-06 13:46:35.194253600 +0300 >> +Change: 2024-07-06 13:46:35.200254300 +0300 Is there a way around it that does not involve replacing crontab tool with my own script that has no such issue? -- With best regards, Andrey Repin Saturday, July 6, 2024 13:34:34 Sorry for my terrible english... -- 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