Re: Working! - Re: user crontab

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi.

On Fri, 08 May 2020 06:56:58 -0400 Robert Moskowitz wrote:
> On 5/8/20 2:08 AM, Cameron Simpson wrote:

>> You _do_ need to ensure the message at least ends with a newline, of 
>> the From_ won't be at the start of a line. So the previously posted 
>> script ensures that with the "echo" in "( cat; echo )". If you want to 
>> ensure a blank line you also need an additional "echo".

> Working on it. Plus I have to sed in a Date: line.

>> Or Robert could install an MDA and make it the MDA's problem :-)

> What fun would that be?

IMO none :-(

> Plus I have always thought of this as a deficiency in cron on a 
> workstation. Cron should work (report in this case) properly without 
> needing something else (MTA) installed.

There is an alternative to cron: systemd.timer

See my previous post:

  https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx/message/4WZ2QUP7XYV7AJDKL4QBMV7KBD4ALCMI/

In your case you will have to use the service manager of your account
instead of the system one.

In short, use "systemctl --user" "journalctl --user".

Assuming you write a rsync-ietf.service file, you can then use:

  ## Status of this rsync:
  systemctl --user status rsync-ietf.service
  
  ## Logs since midnight:
  journalctl --user --since 00:00 -u rsync-ietf.service

I can give more help if you want to use that.

-- 
francis
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux