From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8264D158046 for ; Wed, 9 Oct 2024 16:45:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D9E0D2BC01C; Wed, 9 Oct 2024 16:45:52 +0000 (UTC) Received: from egyptian.ash.relay.mailchannels.net (egyptian.ash.relay.mailchannels.net [23.83.222.56]) (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) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 334ECE29E6 for ; Wed, 9 Oct 2024 16:45:51 +0000 (UTC) X-Sender-Id: thundermail|x-authsender|confabulate@kintzios.com Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 8E3C32C773D for ; Wed, 9 Oct 2024 16:45:50 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1728492350; a=rsa-sha256; cv=none; b=KKh7f7NErLG2aNjmxVocjoOnKRbI3moOYEOMf/DPUsDlUNduU30daIGa2r/RfZxqVr6jDT YHu5YQW+eUKIOaZDvsdDRDfjB6aga8UiLU6aD0qvpFCoV5wqLnjHDqpnZN9hhiQTC4AiYF cp2ykpVHEm2RbrDOlN83Ecwfop8PzamNAQvAevl5YOPMbYdMP9xcjmC9AzMrAkArLahsVV TkpoP3bI3ZmRHrIuEOv85WD4/dtRjaUemHBt1ULvB6R673nHV1DwuA44AWtkBR8NOAlJNw SALy4Q7IN5IlHlqWz5zEwXO5eq4M2z/zaSQQV89xIx5yXnX6rr4mXLgRUoPHtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1728492350; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references; bh=NgFgfWDUERAHwQN5SO6VDtF6ced6VGC4FAPGZsKibn8=; b=JfrlEM3HWC6++THFgvBoE1kcrjXH0K+NcCAA9ySlfbYZ4bYYNvb4xr3G9PDnuTcrNCQ7ry 9KFJJpxHf8ZVuHlmgygesec/koMinPUNeZgoWygeuLnmlSmzsDU+Brwta7NlXApoFEy4Qn NgnG6vZZJNxwOYvH0+7P2mbIyJcM7u+kWLzWzMlORipJz8HNJcH4ygHKHq4pjqals/yLab +delVSZLujxDiiMmutXtkvXTwOJLNb1YgjD144hdeG8aOJlSN/BhjkYGu1/w4TzhUoYupL +hnq9OaJIkaLzTWgOgO3aEE1S1i0oCLpwsH4v1Tsr92ZsJ0+7VYaaZAHk37Iiw== ARC-Authentication-Results: i=1; rspamd-54f99b5bc4-5dv65; auth=pass smtp.auth=thundermail smtp.mailfrom=confabulate@kintzios.com X-Sender-Id: thundermail|x-authsender|confabulate@kintzios.com X-MC-Relay: Neutral X-MailChannels-SenderId: thundermail|x-authsender|confabulate@kintzios.com X-MailChannels-Auth-Id: thundermail X-Left-Fumbling: 3b77e739109f5fea_1728492350215_26392959 X-MC-Loop-Signature: 1728492350215:241624685 X-MC-Ingress-Time: 1728492350215 Received: from mailclean11.thundermail.uk (mailclean11.thundermail.uk [149.255.60.66]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.101.172.212 (trex/7.0.2); Wed, 09 Oct 2024 16:45:50 +0000 Received: from cloud238.thundercloud.uk (cloud238.thundercloud.uk [149.255.62.116]) by mailclean11.thundermail.uk (Postfix) with ESMTPS id CDCE41E0002 for ; Wed, 9 Oct 2024 17:45:47 +0100 (BST) Authentication-Results: cloud238.thundercloud.uk; spf=pass (sender IP is 217.169.3.230) smtp.mailfrom=confabulate@kintzios.com smtp.helo=rogueboard.localnet Received-SPF: pass (cloud238.thundercloud.uk: connection is authenticated) From: Michael To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] cronie setup questions Date: Wed, 09 Oct 2024 17:45:47 +0100 Message-ID: <8452477.T7Z3S40VBb@rogueboard> In-Reply-To: References: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart10560395.nUPlyArG6x"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-PPP-Message-ID: <172849234717.42238.6914432728074334055@cloud238.thundercloud.uk> X-PPP-Vhost: kintzios.com X-Rspamd-Queue-Id: CDCE41E0002 X-Rspamd-Server: mailclean11 X-Spamd-Result: default: False [-1.61 / 999.00]; SIGNED_PGP(-2.00)[]; MID_RHS_NOT_FQDN(0.50)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; ONCE_RECEIVED(0.10)[]; MX_GOOD(-0.01)[]; R_SPF_ALLOW(0.00)[+mx]; FUZZY_BLOCKED(0.00)[rspamd.com]; RCVD_VIA_SMTP_AUTH(0.00)[]; ASN(0.00)[asn:34931, ipnet:149.255.60.0/22, country:GB]; MISSING_XM_UA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_COUNT_ONE(0.00)[1]; R_DKIM_NA(0.00)[]; RCVD_TLS_ALL(0.00)[]; NEURAL_HAM(-0.00)[-0.994]; REPLYTO_ADDR_EQ_FROM(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; DMARC_POLICY_ALLOW(0.00)[kintzios.com,none]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[gentoo-user@lists.gentoo.org]; HAS_REPLYTO(0.00)[confabulate@kintzios.com] X-Rspamd-Action: no action X-Archives-Salt: f9deee31-f271-4015-80ba-22de8200e39a X-Archives-Hash: 1e35ef0651ac38a3dd1d6e8a02b4a604 --nextPart10560395.nUPlyArG6x Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8"; protected-headers="v1" From: Michael To: gentoo-user@lists.gentoo.org Reply-To: confabulate@kintzios.com Subject: Re: [gentoo-user] cronie setup questions Date: Wed, 09 Oct 2024 17:45:47 +0100 Message-ID: <8452477.T7Z3S40VBb@rogueboard> In-Reply-To: MIME-Version: 1.0 On Wednesday 9 October 2024 16:31:16 BST Walter Dnes wrote: > On Thu, Oct 03, 2024 at 07:47:34PM -0400, Walter Dnes wrote > > > The Gentoo install suggested using "cronie". I want to run a script > > > > daily as local user. The config I want is... > > > > 35 7 * * * waltdnes /home/waltdnes/pm/check4update/check4update > > My email shows that the job is launching, but tripping over > permissions. Here's what it's supposed to do... > > * Because I'm running a custom build of Pale Moon web browser, I can't > use the built-in updater from the standard version > * I want to check the palemoon.org Atom feed for new releases > * A text file "previous.txt" has the date stamp of the most recent entry > * bash script "check4update"... > *** wget's the webpage > *** greps the "" lines > *** the top line has the most recent posting > *** compare the the most recent date with "previous.txt" > *** if the same, exit > *** if not the same... > *** 1) update "previous.txt" with the newest date > *** 2) use "geeqie" to display a garish messege about the update > > That last step is the problem. I get the following error... > > (geeqie:14531): Gtk-WARNING **: 07:35:01.797: cannot open display: > > What do I need to do to allow "geeqie" to open up in an X window as > user "waltdnes". You could let it know which display to use in your script, something like: export DISPLAY=:0 However, it gets more complicated if a user is not logged in whenever the script happens to run and if the display is on :1 or some other value. You would probably need to fish for $DISPLAY using awk or something similar and feed this into your script before your '/usr/bin/geeqie %u'. Someone more knowledgable on scripting languages will hopefully advise. --nextPart10560395.nUPlyArG6x Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmcGszsACgkQseqq9sKV ZxknXg/7B+I0iF32eX/qQiKzw+ekzrC+doPNHSxjXku2XnzzYCko1fJ/D/Zn7m7P SgirSrmS6XqJWK8cBEo6hlUQErdVT1ZcUJhrl2mwn4krGPdR39vDgoD6gvv4H9pA oO6ZNHfyEv9+wypFbVV130AB5iFA3mXSgOC/mvZUxrS8rlKbpfl6s7MFNH+yaZ8y chP/lC8kU7CWOOL/MOVKE/l7F5+dWigMsRamW1wavG6ryvXv4N7Q2J7twX4FLPOK giwctbtkU46BNqO/8Jx/OMZVky7+KOJ/MDDjdkpDUok1/SecvvbMVCfW93xAvBxa 61A9OSxm2IiJgTjy3l7kZdYg/NoQyWf8ALQBmsPlUNGrHMSaQEobbSCjXe5b9V4F 2F/36bDe1jZNpxGw7vsW3u1R5xHiJnyytdDq3a7MJ1scOLjzwOLyt1t/BKyGYs6B RcUYPuHjU3wpdVIRtVPQBXyckO4It7vUVo6GPfbNdl/BYF8rU2/goO/PU43oKtL1 Dtcc/dcefPb/2+0XK7U/d5MHJUdhILVxVwFLBfsfCFxGY70TEiJbXuoArynEMgaG iVwMSKO8XBB8yGRxm5cDXdcQ3BfZOFMZZam4ttBljz5a3HpfK0EWo5dDHwrJNLer CZDcjNXrzQ/Wa4m+ds4IzBHmQ2slyrjTqGLJpMSjXffI8F2ahxk= =67v5 -----END PGP SIGNATURE----- --nextPart10560395.nUPlyArG6x--