Re: Restarting cron after crontab update

2024-12-09 Thread Greg Wooledge
then you DO get an email. That depends on the script exiting with an appropriate code. May work, may not. If the "all's well" messages are printed to stdout, and the real errors are printed to stderr, then it might be simpler just to redirect stdout BUT NOT redirect stderr.

Re: Restarting cron after crontab update

2024-12-09 Thread Darac Marjal
On 09/12/2024 15:30, Greg Wooledge wrote: On Mon, Dec 09, 2024 at 15:59:38 +0100, to...@tuxteam.de wrote: On Mon, Dec 09, 2024 at 03:24:06PM +0100, Roger Price wrote: I added lines to /etc/crontab such as # Watch over the NUT heartbeat at 0803 hr every day 38* * * nut/usr/loc

Re: Restarting cron after crontab update

2024-12-09 Thread Darac Marjal
On 09/12/2024 15:30, Greg Wooledge wrote: On Mon, Dec 09, 2024 at 15:59:38 +0100, to...@tuxteam.de wrote: On Mon, Dec 09, 2024 at 03:24:06PM +0100, Roger Price wrote: I added lines to /etc/crontab such as # Watch over the NUT heartbeat at 0803 hr every day 38* * * nut/usr/loc

User "nut" (Was Re: Restarting cron after crontab update)

2024-12-09 Thread Roger Price
On Mon, 9 Dec 2024, Greg Wooledge wrote: .. let it email the output to you (or whoever "nut" is). nut is the user created by the NUT (Network UPS Tools) package which manages my UPS units. Anyone who installs nut to manage UPS's will have this user. Roger

Re: Restarting cron after crontab update

2024-12-09 Thread Charles Curley
On Mon, 9 Dec 2024 10:31:38 -0500 Greg Wooledge wrote: > > In which event cron will send a complaining email to the appropriate > > user. Since Mr. Price hasn't mentioned any such emails, I > > conjecture he is not monitoring his emails in /var/mail, and > > p

Re: Restarting cron after crontab update

2024-12-09 Thread Roger Price
On Mon, 9 Dec 2024, Greg Wooledge wrote: On Mon, Dec 09, 2024 at 15:59:38 +0100, to...@tuxteam.de wrote: I added a username, but crontab -e didn't complain. I still fear your crontab won't do what you expect it to do. Most probably cron will just see what you intended as a user na

Re: Restarting cron after crontab update

2024-12-09 Thread Roger Price
nd personal jobs in one place, but it's non-traditional. It was clearly a misunderstanding on my part to have additional lines in /etc/crontab. I have removed them and returned /etc/crontab to what it was when Debian 11 was installed. All my personal lines are now specified by "crontab -e" and can be seen in /var/spool/cron/crontabs/rprice Roger

Re: Restarting cron after crontab update

2024-12-09 Thread Greg Wooledge
On Mon, Dec 09, 2024 at 08:30:16 -0700, Charles Curley wrote: > On Mon, 9 Dec 2024 15:59:38 +0100 > wrote: > > > Most probably cron will just see what you intended as a user > > name as part of the command: > > > > rprice /mnt/home/rprice/bark/bark.sh 11 &

Re: Restarting cron after crontab update

2024-12-09 Thread Greg Wooledge
n the system indicating that the job was attempted at 08:03. If you want any more details (like why it's failing), get rid of the redirections and let it email the output to you (or whoever "nut" is). > > I added a username, but crontab -e didn't complain. > > I st

Re: Restarting cron after crontab update

2024-12-09 Thread Charles Curley
On Mon, 9 Dec 2024 15:59:38 +0100 wrote: > Most probably cron will just see what you intended as a user > name as part of the command: > > rprice /mnt/home/rprice/bark/bark.sh 11 > /dev/null 2>&1 > > will run the command "rprice" on the args "/mnt

Re: Restarting cron after crontab update

2024-12-09 Thread tomas
e all the jobs are run as > > you). > > I added a username, but crontab -e didn't complain. I still fear your crontab won't do what you expect it to do. Most probably cron will just see what you intended as a user name as part of the command: rprice /mnt/home/rprice/bark/

Re: Restarting cron after crontab update

2024-12-08 Thread Greg Wooledge
On Sun, Dec 08, 2024 at 11:19:52 +0100, Roger Price wrote: > With emacs I made a change to /etc/crontab on a Debian 11 workstation. I > have done this before successfully. After the change I ran > > systemctl restart cron && systemctl status cron > > But now the

Re: Restarting cron after crontab update

2024-12-08 Thread Roger Price
On Sun, 8 Dec 2024, debian-u...@howorth.org.uk wrote: Roger Price wrote: With emacs I made a change to /etc/crontab on a Debian 11 When you say you made a change with emacs, what command did you run? emacs /etc/crontab What you are supposed to do is use the command crontab to start the

Re: Restarting cron after crontab update

2024-12-08 Thread debian-user
e. You should not start emacs and use it to edit a cron file. There is no need to restart cron yourself, as Michael said. > After the change I ran > > systemctl restart cron && systemctl status cron > > But now the change doesn't take effect. > > I tried

Re: Restarting cron after crontab update

2024-12-08 Thread Michael Kjörling
On 8 Dec 2024 11:19 +0100, from deb...@rogerprice.org (Roger Price): > What is the correct way to get cron to read the new crontab ? Saving the crontab file. It should be re-read automatically, with no need to restart a system-level service. Either you also did something else which you do

Restarting cron after crontab update

2024-12-08 Thread Roger Price
With emacs I made a change to /etc/crontab on a Debian 11 workstation. I have done this before successfully. After the change I ran systemctl restart cron && systemctl status cron But now the change doesn't take effect. I tried systemctl reload cron, but got the reply &quo

Re: cronitor.io for monitoring cron jobs

2023-09-12 Thread Tom Browder
On Tue, Sep 12, 2023 at 00:54 Kushal Kumaran wrote: > On Mon, Sep 11 2023 at 05:59:37 AM, Tom Browder > wrote: > > Anyone using that system? It looks interesting to me. > > > I prefer healthchecks.io, mainly because cron job monitoring was all I > was looking for,

Re: cronitor.io for monitoring cron jobs

2023-09-11 Thread Kushal Kumaran
On Mon, Sep 11 2023 at 05:59:37 AM, Tom Browder wrote: > Anyone using that system? It looks interesting to me. > I prefer healthchecks.io, mainly because cron job monitoring was all I was looking for, and the software is open source. There is a comparison with cronitor at

[outrageously off-topic] All those Thomas [was: cronitor.io for monitoring cron jobs]

2023-09-11 Thread tomas
On Mon, Sep 11, 2023 at 05:08:04PM +, Andrew M.A. Cater wrote: > On Mon, Sep 11, 2023 at 06:49:00PM +0200, to...@tuxteam.de wrote: > > On Mon, Sep 11, 2023 at 05:31:45PM +0200, Thomas Schmitt wrote: > > > Hi, > > > > > > to...@tuxteam.de wrote: > > > > and we're all twins [1] ;-) > > > > [1] h

Re: cronitor.io for monitoring cron jobs

2023-09-11 Thread Andrew M.A. Cater
On Mon, Sep 11, 2023 at 06:49:00PM +0200, to...@tuxteam.de wrote: > On Mon, Sep 11, 2023 at 05:31:45PM +0200, Thomas Schmitt wrote: > > Hi, > > > > to...@tuxteam.de wrote: > > > and we're all twins [1] ;-) > > > [1] https://en.wikipedia.org/wiki/Thomas_(name) > > > > But paradoxly less than half

Re: cronitor.io for monitoring cron jobs

2023-09-11 Thread tomas
On Mon, Sep 11, 2023 at 05:31:45PM +0200, Thomas Schmitt wrote: > Hi, > > to...@tuxteam.de wrote: > > and we're all twins [1] ;-) > > [1] https://en.wikipedia.org/wiki/Thomas_(name) > > But paradoxly less than half of all twins bear this very cool name. Which is a pity, ain't it ;-) Imagine the

Re: cronitor.io for monitoring cron jobs

2023-09-11 Thread Thomas Schmitt
Hi, to...@tuxteam.de wrote: > and we're all twins [1] ;-) > [1] https://en.wikipedia.org/wiki/Thomas_(name) But paradoxly less than half of all twins bear this very cool name. Have a nice day :) Thomas

Re: cronitor.io for monitoring cron jobs

2023-09-11 Thread tomas
On Mon, Sep 11, 2023 at 07:46:35AM -0500, Tom Browder wrote: [...] > > "Apt search monitor" and subsequent filtering with "web" yields half > > a dozen other interesting hits. > > > Thanks, Tomas, I was not savy enough to think of that! Glad to help :) > P.S. We share a good, Biblical name, d

Re: cronitor.io for monitoring cron jobs

2023-09-11 Thread Tom Browder
On Mon, Sep 11, 2023 at 07:25 wrote: > On Mon, Sep 11, 2023 at 06:46:43AM -0500, Tom Browder wrote: > > On Mon, Sep 11, 2023 at 06:22 wrote: > > > > > On Mon, Sep 11, 2023 at 05:59:37AM -0500, Tom Browder wrote: > > > > Anyone using that system? It looks interesting to me. > > > > > > Gah. My ey

Re: cronitor.io for monitoring cron jobs

2023-09-11 Thread tomas
On Mon, Sep 11, 2023 at 05:59:37AM -0500, Tom Browder wrote: > Anyone using that system? It looks interesting to me. Gah. My eyes hurt now after having looked at the web site. Besides, it looks a bit like a bait-and-switch SaSS. No, I wouldn't use it. Cheers -- t signature.asc Description: P

cronitor.io for monitoring cron jobs

2023-09-11 Thread Tom Browder
Anyone using that system? It looks interesting to me. -Tom

Re: Bookworm VPS image and cron

2023-08-25 Thread Steve Sobol
It sounds to me like not a bug, since a minimal debootstrap (debootstrap --variant=minbase bookworm target-dir) of Debian 12 does not include the "cron" package either. It's just a change. Nothing in the base system needs cron any more. Might not be a bug. Regardless, th

Re: Bookworm VPS image and cron

2023-08-25 Thread Andy Smith
t a bug, since a minimal debootstrap (debootstrap --variant=minbase bookworm target-dir) of Debian 12 does not include the "cron" package either. It's just a change. Nothing in the base system needs cron any more. I'd regard it as more of a bug if cron got installed without a

Re: Bookworm VPS image and cron

2023-08-24 Thread Steve Sobol
.04, 22.04, and Debian bullseye all shipped with cron properly installed. Come to think of it... I just checked a local bookworm VM I'm running at home, and it has cron installed, too. I'll open a ticket. Response from the provider: [ Hi Steve, Thanks for reaching out to DigitalO

Re: Bookworm VPS image and cron

2023-08-05 Thread Geert Stappers
On Sat, Aug 05, 2023 at 02:00:42PM -0700, Steve Sobol wrote: > On 2023-08-05 13:23, Michael Kjörling wrote: > > On 5 Aug 2023 22:13 +0200, from johndoe65...@mail.com (john doe): > > > > But cron isn't installed. > > > > > > I just install a new Bookworm

Re: Bookworm - cron?

2023-08-05 Thread Andy Smith
> > > crontab. > > > > > > But cron isn't installed. > > > > Seems unlikely. There are system cron jobs that are not yet > > converted to systemd timers. A bookworm install I did just yesterday > > has cron jobs in /etc/cron.d/ that require

Re: Bookworm - cron?

2023-08-05 Thread Steve Sobol
On 2023-08-05 13:16, Andy Smith wrote: Hello, On Sat, Aug 05, 2023 at 12:53:08PM -0700, Steve Sobol wrote: Part of my standard procedure for setting up new VMs involves editing root's crontab. But cron isn't installed. Seems unlikely. There are system cron jobs that are not yet

Re: Bookworm - cron?

2023-08-05 Thread Steve Sobol
On 2023-08-05 13:23, Michael Kjörling wrote: On 5 Aug 2023 22:13 +0200, from johndoe65...@mail.com (john doe): But cron isn't installed. I just install a new Bookworm VM and 'cron' is present! :) Ditto. That must be some customization your VPS provider has made, if the inst

Re: Bookworm - cron?

2023-08-05 Thread Andy Smith
On Sat, Aug 05, 2023 at 08:16:57PM +, Andy Smith wrote: > Hello, > > On Sat, Aug 05, 2023 at 12:53:08PM -0700, Steve Sobol wrote: > > But cron isn't installed. > > Seems unlikely. There are system cron jobs that are not yet > converted to systemd timers.

Re: Bookworm - cron?

2023-08-05 Thread Andy Smith
a hosting company would put in the effort to > convert the system cron jobs to systemd timers though Having had a look at the system cron jobs that end up installed by default, every single one of them does have a systemd timer that executes instead of them, so I think I must take it back and sa

Re: Bookworm - cron?

2023-08-05 Thread Andy Smith
Hello, On Sat, Aug 05, 2023 at 08:23:19PM +, Michael Kjörling wrote: > On 5 Aug 2023 22:13 +0200, from johndoe65...@mail.com (john doe): > >> But cron isn't installed. > > > > I just install a new Bookworm VM and 'cron' is present! :) > > Di

Re: Bookworm - cron?

2023-08-05 Thread Greg Wooledge
On Sat, Aug 05, 2023 at 12:53:08PM -0700, Steve Sobol wrote: > My VPS provider [...] > But cron isn't installed. > > What am I expected to use instead? (I assume that I *could* install cron, > but there must be a reason it's not installed by default anymore, right?)

Re: Bookworm - cron?

2023-08-05 Thread Michael Kjörling
On 5 Aug 2023 22:13 +0200, from johndoe65...@mail.com (john doe): >> But cron isn't installed. > > I just install a new Bookworm VM and 'cron' is present! :) Ditto. That must be some customization your VPS provider has made, if the installation didn't somehow fa

Re: Bookworm - cron?

2023-08-05 Thread Andy Smith
Hello, On Sat, Aug 05, 2023 at 12:53:08PM -0700, Steve Sobol wrote: > Part of my standard procedure for setting up new VMs involves editing root's > crontab. > > But cron isn't installed. Seems unlikely. There are system cron jobs that are not yet converted to systemd time

Re: Bookworm - cron?

2023-08-05 Thread john doe
On 8/5/23 21:53, Steve Sobol wrote: Crazy question: My VPS provider just started offering bookworm images. So when I set up a new server yesterday, I installed bookworm. Part of my standard procedure for setting up new VMs involves editing root's crontab. But cron isn't installed.

Bookworm - cron?

2023-08-05 Thread Steve Sobol
Crazy question: My VPS provider just started offering bookworm images. So when I set up a new server yesterday, I installed bookworm. Part of my standard procedure for setting up new VMs involves editing root's crontab. But cron isn't installed. What am I expected to use i

Re: which dput/method to chose for automatic uploads via cron?

2023-08-01 Thread Michael Kjörling
On 1 Aug 2023 10:59 +0200, from harald.dun...@aixigo.com (Harald Dunkel): > - dput-ng/sftpworks fine on the command line, but dies with > "Failed to auth" in cron scripts. I can't help you choose a dput method, but different results between running on a

which dput/method to chose for automatic uploads via cron?

2023-08-01 Thread Harald Dunkel
ig_options appear to be ignored - dput/sftp doesn't exist - dput-ng/scp ignores ssh_config_options - dput-ng/sftp works fine on the command line, but dies with "Failed to auth" in cron scripts. - dput-ng/rsync doesn't exist I have to use a dedic

Re: How does mailutils "mail" command or cron contact local MTA?

2022-09-18 Thread Teemu Likonen
* 2022-09-18 09:00:49-0400, Greg Wooledge wrote: > In normal usage, scripts should always be calling mailx or an > equivalent program which is *designed* to create the e-mail headers > correctly. This is especially true if you're sending attachments. > Writing the MIME headers and attachment marku

Re: How does mailutils "mail" command or cron contact local MTA?

2022-09-18 Thread Greg Wooledge
On Sun, Sep 18, 2022 at 09:27:46AM +0200, Yvan Masson wrote: > So the `mailutils` package with `mail` command is optional: `sendmail` could > be used directly in scripts (but it might be a bit less practical to use, > see for example https://www.computerhope.com/unix/usendmai.htm#examples). If you

Re: How does mailutils "mail" command or cron contact local MTA?

2022-09-18 Thread Yvan Masson
Le 18/09/2022 à 00:32, Greg Wooledge a écrit : On Sat, Sep 17, 2022 at 11:11:51PM +0200, Yvan Masson wrote: My question is: how cron daemon and mail command know that they should contact openSMTPd, and how? Do they try by default on localhost:25 or /run/smtpd.sock? I could not find any clue

Re: How does mailutils "mail" command or cron contact local MTA?

2022-09-17 Thread Greg Wooledge
On Sat, Sep 17, 2022 at 11:11:51PM +0200, Yvan Masson wrote: > My question is: how cron daemon and mail command know that they should > contact openSMTPd, and how? Do they try by default on localhost:25 or > /run/smtpd.sock? I could not find any clue, nor in cron manpages nor in > mail

How does mailutils "mail" command or cron contact local MTA?

2022-09-17 Thread Yvan Masson
/aliases`. This allows me to send email from my servers, either when cron runs a task, or when I run `echo my_content | mail -s subject root` from scripts. My question is: how cron daemon and mail command know that they should contact openSMTPd, and how? Do they try by default on localhost:25 or

Re: Debian 9 cron = sounds are ok : Debian 11 cron no sound

2022-07-22 Thread Roger Price
On Thu, 21 Jul 2022, Dekks Herton wrote: Roger Price writes: Command cat /sys/devices/cpu/caps/pmu_name reports: westmere I should have said also that command inxi -Fix reports MCP arch: Nehalem, which is specified in more detail by the reference E5645 at https://en.wikipedia.org/wiki/Wes

Re: Debian 9 cron = sounds are ok : Debian 11 cron no sound

2022-07-21 Thread Dekks Herton
Roger Price writes: > On Mon, 18 Jul 2022, Dekks Herton wrote: >> What kernel is 11 running? are you using a Haswell or Broadwell CPU? > > Command inxi reports: > System:Host: titan Kernel: 5.10.0-15-amd64 x86_64 bits: 64 > Desktop: Xfce 4.16.0 Distro: Debian GNU/Linux 11 (bullse

Re: Debian 9 cron = sounds are ok : Debian 11 cron no sound

2022-07-18 Thread Roger Price
On Mon, 18 Jul 2022, Dekks Herton wrote: What kernel is 11 running? are you using a Haswell or Broadwell CPU? Command inxi reports: System:Host: titan Kernel: 5.10.0-15-amd64 x86_64 bits: 64 Desktop: Xfce 4.16.0 Distro: Debian GNU/Linux 11 (bullseye) Machine: Type: Desktop S

Re: Debian 9 cron = sounds are ok : Debian 11 cron no sound

2022-07-18 Thread Dekks Herton
der of this list > have sound coming from a Debian 11 cron job? If so, how is it done? > > Roger What kernel is 11 running? are you using a Haswell or Broadwell CPU? Regards.

Re: Debian 9 cron = sounds are ok : Debian 11 cron no sound [Solved]

2022-07-17 Thread Roger Price
installing it I cleaned up the default pulse mess left over by previous operating system installations (My user space ~rprice has been running since Sept 1994). To my surprise, when cron calls the Bash script bark.sh, command "pactl list short sinks" reports Connection failure:

Re: Debian 9 cron = sounds are ok : Debian 11 cron no sound

2022-07-17 Thread Roger Price
On Sun, 17 Jul 2022, Lee wrote: On 7/17/22, The Wanderer wrote: I don't use cron to play sounds, so I can't speak to this directly, but... While this may turn out in the end to be pure FUD, when I hear about things which work properly when run by hand but not when run automati

Re: Debian 9 cron = sounds are ok : Debian 11 cron no sound

2022-07-17 Thread Dan Ritter
: > > ALSA lib pcm_dmix.c:1075:(snd_pcm_dmix_open) unable to open slave > /usr/bin/play FAIL sox: Sorry, there is no default audio device configured I'm going to guess that: - you normally have pulseaudio running - the commands work when systemd has set up a pulseaudio daemon fo

Re: Debian 9 cron = sounds are ok : Debian 11 cron no sound

2022-07-17 Thread Lee
On 7/17/22, The Wanderer wrote: > On 2022-07-16 at 04:47, Roger Price wrote: > >> People occasionally have a cron job emit some sound each hour. On my >> Debian 9 >> machine I hear Biff [1] barking. In /etc/crontab I have an entry to call a >> >> script bark.

Re: Debian 9 cron = sounds are ok : Debian 11 cron no sound

2022-07-17 Thread The Wanderer
On 2022-07-16 at 04:47, Roger Price wrote: > People occasionally have a cron job emit some sound each hour. On my Debian > 9 > machine I hear Biff [1] barking. In /etc/crontab I have an entry to call a > script bark.sh which does the barking. Typically > > 0,1 0,12 * *

Re: Debian 9 cron = sounds are ok : Debian 11 cron no sound

2022-07-17 Thread Lee
On 7/16/22, Roger Price wrote: > On Sat, 16 Jul 2022, Lee wrote: > >> I don't have play, so I tried aplay .. and it works, even if I'm >> logged out, even if someone else is logged in. >> >> ## run the script every minute >> >> $ crontab -l | tail -3 >> # m h dom mon dow command >> * * * *

Re: Debian 9 cron = sounds are ok : Debian 11 cron no sound

2022-07-16 Thread Roger Price
On Sat, 16 Jul 2022, Lee wrote: I don't have play, so I tried aplay .. and it works, even if I'm logged out, even if someone else is logged in. ## run the script every minute $ crontab -l | tail -3 # m h dom mon dow command * * * * */home/lee/bin/neener.sh ## which plays a .wav

Re: Debian 9 cron = sounds are ok : Debian 11 cron no sound

2022-07-16 Thread Lee
On 7/16/22, Roger Price wrote: > People occasionally have a cron job emit some sound each hour. On my Debian > 9 > machine I hear Biff [1] barking. In /etc/crontab I have an entry to call a > script bark.sh which does the barking. Typically > > 0,1 0,12 * * * rprice full-pa

Debian 9 cron = sounds are ok : Debian 11 cron no sound

2022-07-16 Thread Roger Price
People occasionally have a cron job emit some sound each hour. On my Debian 9 machine I hear Biff [1] barking. In /etc/crontab I have an entry to call a script bark.sh which does the barking. Typically 0,1 0,12 * * * rprice full-path-to/bark.sh 12 2>>&1 where bark.sh is a Bash sc

Re: Cron removal - unstable, question

2022-06-12 Thread Andy Smith
Hello, On Sun, Jun 12, 2022 at 11:56:26PM +0100, Štěpán Košan wrote: > really sorry to bother with a stupid question, however I was wondering, I > got a warning that CRON is about to be removed in the upgrade, but it seems > it's still on. Is there a plan to remove it eventually? I

Cron removal - unstable, question

2022-06-12 Thread Štěpán Košan
Hello everyone, really sorry to bother with a stupid question, however I was wondering, I got a warning that CRON is about to be removed in the upgrade, but it seems it's still on. Is there a plan to remove it eventually? Thank you and I apologize If this list is only for Debian stable.

Re: Cron Jobs and Time Zones Has Anything Changed?

2020-12-07 Thread Andrei POPESCU
On Du, 06 dec 20, 12:23:43, Martin McCormick wrote: > > An on-going problem about self-education is that it's > easy to limit the scope so much that we miss connections. > Systemd timers doesn't even sound like a replacement for cron but > think of it as cron o

Re: Cron Jobs and Time Zones Has Anything Changed?

2020-12-06 Thread Martin McCormick
rules in making sound cards come up in the right order and that's totally a systemd thing. While searching for ways to use cron with different time zones, I found out about something called systemd timers just mentioned in this thread and it appears they definitely will do the job but

Re: Cron Jobs and Time Zones Has Anything Changed?

2020-12-04 Thread Andrei POPESCU
On Jo, 03 dec 20, 07:39:14, Martin McCormick wrote: > > So, I need to read more general information about the > differences between systemd and what we've been using up to > recently. The Wikipedia page and/or https://systemd.io might be a good place to start. Kind regards, Andrei -- htt

Re: Cron Jobs and Time Zones Has Anything Changed?

2020-12-03 Thread Andy Smith
Hi David, On Fri, Dec 04, 2020 at 01:32:35PM +1100, David wrote: > On Fri, 4 Dec 2020 at 13:10, Andy Smith wrote: > > So much text written without clear statement of problem! > > I understand why you wrote that, but you might be unaware that > Martin has previously mentioned on this list that he

Re: Cron Jobs and Time Zones Has Anything Changed?

2020-12-03 Thread David
On Fri, 4 Dec 2020 at 13:10, Andy Smith wrote: [...] > I am surprised that just looking up documentation > on systemd timers doesn't answer that question for you. [...] > So much text written without clear statement of problem! I understand why you wrote that, but you might be unaware that Ma

Re: Cron Jobs and Time Zones Has Anything Changed?

2020-12-03 Thread Andy Smith
Hello, On Thu, Dec 03, 2020 at 07:39:14AM -0600, Martin McCormick wrote: > I am guilty as charged but haven't yet found the relevant information > as to how systemd helps solve this issue. You can put a time zone in a systemd timer. I can't see how it can be stated any simpler than that. If you

Re: Cron Jobs and Time Zones Has Anything Changed?

2020-12-03 Thread Fabrice BAUZAC-STEHLY
if > one doesn't think about it since these shifts don't all happen on > the same time. Maybe you could create ~/.config/cron/bcast.vixie: 45 17 * * mon-fri echo hello or whatever command you want And install mcron, then run: TZ=Europe/London mcron --dae

Re: Cron Jobs and Time Zones Has Anything Changed?

2020-12-03 Thread Martin McCormick
> On Wed, Dec 02, 2020 at 01:58:45PM +, James B wrote: > > This might be wrong, but as far as I understand doesn't systemd > > now have the ability to manage cron jobs (as well as mount points, > > home folders and other things)?. Is there anything in this newer &g

Re: Cron Jobs and Time Zones Has Anything Changed?

2020-12-02 Thread Greg Wooledge
On Wed, Dec 02, 2020 at 01:17:02PM -0500, Dan Ritter wrote: > As a name for the utility, I suggest "do-if-time-in" and require > three parameters: > > do-if-time-in timezone time "command" > > As an interim fix, though: (and I know Greg's going to fix this) > > --- > #!/bin/bash > TZ=$1 > NOW=$(

Re: Cron Jobs and Time Zones Has Anything Changed?

2020-12-02 Thread Dan Ritter
This approach requires one of: - convince the upstream maintainer of cron to adopt it - convince the Debian maintainer of cron to adopt it as a patch that gets applied and potentially broken/fixed on each release - creates a new cron package in competition with the existing one - creates a

Re: Cron Jobs and Time Zones Has Anything Changed?

2020-12-02 Thread Martin McCormick
un on the 27th through the 30th every > month. Then within the job itself, determine whether it's the > correct day, and abort if it's not. What I was thinking of is a modification to cron which should integrate nicely with what cron already does. Crontab would have

Re: Cron Jobs and Time Zones Has Anything Changed?

2020-12-02 Thread James B
I understand doesn't systemd > > now have the ability to manage cron jobs (as well as mount points, > > home folders and other things)?. Is there anything in this newer > > functionality that might make such a thing (re the request at the > > beginning of this thread)

Re: Cron Jobs and Time Zones Has Anything Changed?

2020-12-02 Thread Andy Smith
Hello, On Wed, Dec 02, 2020 at 01:58:45PM +, James B wrote: > This might be wrong, but as far as I understand doesn't systemd > now have the ability to manage cron jobs (as well as mount points, > home folders and other things)?. Is there anything in this newer > functionalit

Re: Cron Jobs and Time Zones Has Anything Changed?

2020-12-02 Thread Greg Wooledge
On Wed, Dec 02, 2020 at 08:53:28AM -0500, Dan Ritter wrote: > It would not be ridiculous to run a wrapper program out of, e.g. > cron.hourly, which used an explicitly set TZ as a cue to run > another job. I was vaguely thinking of a similar approach. Set up a job that runs every hour, or across a

Re: Cron Jobs and Time Zones Has Anything Changed?

2020-12-02 Thread Eduardo M KALINOWSKI
On 02/12/2020 10:30, Martin McCormick wrote: > In a recent discussion, someone indicated that there might be a > way to set individual parts such as accounts on a unix system so > that cron could use another time zone if needed to kickoff jobs > on that system based on the time in ano

Re: Cron Jobs and Time Zones Has Anything Changed?

2020-12-02 Thread James B
This might be wrong, but as far as I understand doesn't systemd now have the ability to manage cron jobs (as well as mount points, home folders and other things)?. Is there anything in this newer functionality that might make such a thing (re the request at the beginning of this t

Re: Cron Jobs and Time Zones Has Anything Changed?

2020-12-02 Thread Dan Ritter
Greg Wooledge wrote: > On Wed, Dec 02, 2020 at 07:30:22AM -0600, Martin McCormick wrote: > > In a recent discussion, someone indicated that there might be a > > way to set individual parts such as accounts on a unix system so > > that cron could use another time zone if n

Re: Cron Jobs and Time Zones Has Anything Changed?

2020-12-02 Thread Greg Wooledge
On Wed, Dec 02, 2020 at 07:30:22AM -0600, Martin McCormick wrote: > In a recent discussion, someone indicated that there might be a > way to set individual parts such as accounts on a unix system so > that cron could use another time zone if needed to kickoff jobs > on that system

Cron Jobs and Time Zones Has Anything Changed?

2020-12-02 Thread Martin McCormick
In a recent discussion, someone indicated that there might be a way to set individual parts such as accounts on a unix system so that cron could use another time zone if needed to kickoff jobs on that system based on the time in another country. As far as I understand cron, one can set

Re: Executing 'systemctl poweroff' from script run by cron.

2020-11-24 Thread Fred
On 11/24/20 5:05 AM, Nicholas Geovanis wrote: On Tue, Nov 24, 2020, 4:58 AM Reco > wrote:         Hi. On Tue, Nov 24, 2020 at 10:05:26AM +0100, to...@tuxteam.de wrote: . > > Thanks for the gory details.

Re: Executing 'systemctl poweroff' from script run by cron.

2020-11-24 Thread tomas
On Tue, Nov 24, 2020 at 06:05:14AM -0600, Nicholas Geovanis wrote: [...] > It must be said: Kuhscheiß, bullshit. > > Voices said that systemd was over-engineered before it was even really > available [...] My take (if it matters at all) is that I don't like that overcomplex design (not only sys

Re: Executing 'systemctl poweroff' from script run by cron.

2020-11-24 Thread Nicholas Geovanis
On Tue, Nov 24, 2020, 4:58 AM Reco wrote: > Hi. > > On Tue, Nov 24, 2020 at 10:05:26AM +0100, to...@tuxteam.de wrote: > . > > > > Thanks for the gory details. You spoilt my breakfast ;-) > > I really feel sorry for that. > But in this regard systemd is akin to many other things in lif

Re: Executing 'systemctl poweroff' from script run by cron.

2020-11-24 Thread Reco
Hi. On Tue, Nov 24, 2020 at 10:05:26AM +0100, to...@tuxteam.de wrote: > On Tue, Nov 24, 2020 at 09:32:49AM +0300, Reco wrote: > > On Mon, Nov 23, 2020 at 10:55:50PM -, Juan R. de Silva wrote: > > > 1. Why, when the script is run by the user cron job, the executi

Re: Executing 'systemctl poweroff' from script run by cron.

2020-11-24 Thread tomas
On Tue, Nov 24, 2020 at 09:32:49AM +0300, Reco wrote: > Hi. > > On Mon, Nov 23, 2020 at 10:55:50PM -, Juan R. de Silva wrote: > > 1. Why, when the script is run by the user cron job, the execution > > requires authentication, while run from the same user termi

Re: Executing 'systemctl poweroff' from script run by cron.

2020-11-23 Thread Reco
Hi. On Mon, Nov 23, 2020 at 10:55:50PM -, Juan R. de Silva wrote: > 1. Why, when the script is run by the user cron job, the execution > requires authentication, while run from the same user terminal, it does > not. What "systemctl poweroff" actually does (src/sy

Executing 'systemctl poweroff' from script run by cron.

2020-11-23 Thread Juan R. de Silva
I am running Buster after fairly deafult installation. One of my scripts executes '/usr/bin/systemctl poweroff' command. And I am having trouble executing this script from cron. 1. If run from user's CLI, the script succeeds. 2. If run from root crontab the script succeeds.

Re: cron consolekit pam_ck_connector.so: no such file

2020-09-15 Thread Beco
Thanks Reco, I don't know how you keep up after all these years seen you here on the debian list. Congrats. Beco. On Tue, 15 Sep 2020 at 11:36, Reco wrote: > Hi. > > On Tue, Sep 15, 2020 at 11:19:39AM -0300, Beco wrote: > > Is this pam module deprecated? > > Yes, it was removed fr

Re: cron consolekit pam_ck_connector.so: no such file

2020-09-15 Thread Reco
Hi. On Tue, Sep 15, 2020 at 11:19:39AM -0300, Beco wrote: > Is this pam module deprecated? Yes, it was removed from main archive back in 2018 - [1]. > I can't find the package that provides it on > debian buster. There's no package in buster that provides the PAM module or ConsoleKit it

cron consolekit pam_ck_connector.so: no such file

2020-09-15 Thread Beco
Dear debians, Is this pam module deprecated? I can't find the package that provides it on debian buster. And I get a lot of logs: CRON: PAM adding faulty module: pam_ck_connector.so SSHD: PAM adding faulty module: pam_ck_connector.so unable to dlopen(pam_ck_connector.so): /lib/sec

Re: cron problem

2020-05-18 Thread David Wright
e I don't know what MAILTO is, I suspect I've never had to have it > set before:-) > > I looked around and found 'mailto's (LC) in my amanda config (it > points at root@localhost -- the amanda cron job script's another thing > that's missing). But nowhe

Re: cron problem

2020-05-18 Thread Greg Wooledge
On Sun, May 17, 2020 at 11:21:11AM -0600, ghe wrote: > > Cron jobs (some of them) don't show up in root's email. Which MTA are you using, and how did you configure its behavior for mail addressed to "root"? Some MTAs will deliver literally to root's inbox (/va

Re: cron problem

2020-05-18 Thread Andrei POPESCU
On Du, 17 mai 20, 19:14:46, ghe wrote: > > Is MAILTO an environmental var? There's no MAILTO in 'env' when root or > backup (the amanda user) or ghe (me). There's a MAIL in the users' > environments, but I don't think that's what you're talking about. It's > pointed at /var/mail/ anyway. See man

Re: cron problem

2020-05-17 Thread ghe
;ve never had to have it set before:-) I looked around and found 'mailto's (LC) in my amanda config (it points at root@localhost -- the amanda cron job script's another thing that's missing). But nowhere else. Is MAILTO an environmental var? There's no MAILTO in '

Re: cron problem

2020-05-17 Thread David Wright
On Sun 17 May 2020 at 13:05:39 (-0600), ghe wrote: > On Sunday, May 17, 2020 12:03 PM, David Wright > wrote: > > > I always examine my cron with > > > > crontab -l > > > > rather than just catting some random file. > > Here it is, but I se

Re: cron problem

2020-05-17 Thread ghe
‐‐‐ Original Message ‐‐‐ On Sunday, May 17, 2020 12:03 PM, David Wright wrote: > I always examine my cron with > > crontab -l > > rather than just catting some random file. > > Cheers, > David. Here it is, but I see no difference, except the disab

Re: cron problem

2020-05-17 Thread David Wright
On Sun 17 May 2020 at 11:21:11 (-0600), ghe wrote: > On 5/17/20 10:42 AM, ghe wrote: > > Buster, Supermicro desktop > > > > Cron jobs (some of them) don't show up in root's email. > > > > I admin 2 domains -- one on Squeeze, one on Buster. My Squeeze &g

Re: cron problem

2020-05-17 Thread ghe
On 5/17/20 10:42 AM, ghe wrote: Buster, Supermicro desktop Cron jobs (some of them) don't show up in root's email. I admin 2 domains -- one on Squeeze, one on Buster. My Squeeze cron results show up fine; Buster's don't. I've reinstalled the Buster jobs. I

  1   2   3   4   5   6   7   8   9   10   >