Difference between revisions of "Talk:Cron"

From ArchWiki
Jump to: navigation, search
(https://wiki.archlinux.org/index.php/Cron: new section)
(Ambiguity?: new section)
(12 intermediate revisions by 7 users not shown)
Line 1: Line 1:
==Expansion==
+
== Ambiguity? ==
  
I added a couple of sections to this article, trying to touch on the basic configuration, format, and commands of cron and crontab, and thus thought it appropriate to remove the "expansion" template from the top of the page. I have no idea if this is standard procedure, whether I expanded it to everyone's satisfaction, etc. If anyone has any complaints please fix them, put the expansion template back, berate me, or do whatever needs to be done. Since there was no explanation on this talk page as to what anyone thought needed to be done, I just guessed at what people might want to know. Please let me know if I missed the mark.
+
Under Configuration/Users and autostart, it says:
--[[User:Trey|Trey]] 17:00, 7 March 2010 (EST)
+
<blockquote>In order to use crontab application (editor for job entries), users must be members of a designated group {{ic|users}} <u>or {{ic|root}}, of which all users should already be members</u>. <i>(emphasis mine)</i></blockquote>
 
+
This seems rather ambiguous - new users might inadvertently add all users to the "root" group. Perhaps we should change it so {{ic|users}} is listed second? [[User:Pacman|Pacman]] ([[User talk:Pacman|talk]]) 17:17, 10 December 2013 (UTC)
=="Handling errors of jobs" section accuracy==
+
 
+
"Handling errors of jobs" section is inaccurate or incomplete and needs corrections and updated.
+
It was tested, failed to function, and corrections were added which were deleted for some reason.
+
Will have to google for correct info until correct info is restored, or the now deleted section is correctly updated. -- [[User:Jeff story|Jeff story]] 22:48, 18 March 2011 (EDT)
+
:I pasted here your comment. -- [[User:Kynikos|Kynikos]] 20:15, 18 March 2011 (EDT)
+
 
+
== https://wiki.archlinux.org/index.php/Cron ==
+
 
+
NOTICE TO WIKI EDITORS REGARDING:
+
 
+
https://wiki.archlinux.org/index.php/Cron
+
 
+
 
+
Please don't just delete this info I provided '''as an addition''' to existing info!!!
+
 
+
Why would that be done in any case unless it was absolutely garbage info?
+
 
+
'''The reason I edited the WIKI is because as it was written,
+
following the instructions didn't work on my system.'''
+
 
+
After reading various info from other sources, I did get it working on my system.
+
 
+
I added and shared the info as an option if the original as written instructions didn't work for someone else.
+
 
+
The file I suggest creating is ~/.esmtprc and not the same as /etc/esmtprc.
+
 
+
This is why following the original wiki instructions did not work and why I took the time to share what I had to do to get it working.
+
 
+
Changing permissions on a non existing file as someone edited will do nothing to fix the issue......
+
 
+
'''Please read the details before deleting someones contribution!'''
+
 
+
 
+
 
+
 
+
====If the test didn't work, try this. Otherwise, skip to Crontab format====
+
Install esmtp and procmail
+
# pacman -S esmtp procmail 
+
After installation create file {{Filename|~/.esmtprc}} with this content:
+
mda "/usr/bin/procmail -d %T" 
+
Run the following command to make sure it has the correct 710 permission:
+
$ chmod 710 ~/.esmtprc
+
Create a file {{Filename|message.txt}} with "your message" in it.
+
From the directory containing {{Filename|message.txt}} run:
+
$ sendmail user_name < message.txt
+
then:
+
$ cat /var/spool/mail/user_name
+
You should see in the terminal, the "your message", the time and date it was sent
+

Revision as of 17:17, 10 December 2013

Ambiguity?

Under Configuration/Users and autostart, it says:

In order to use crontab application (editor for job entries), users must be members of a designated group users or root, of which all users should already be members. (emphasis mine)

This seems rather ambiguous - new users might inadvertently add all users to the "root" group. Perhaps we should change it so users is listed second? Pacman (talk) 17:17, 10 December 2013 (UTC)