Difference between revisions of "Talk:Cron"

From ArchWiki
Jump to: navigation, search
(actually you're quite right)
(Clean-up old talk)
(7 intermediate revisions by 5 users not shown)
Line 1: Line 1:
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.
--[[User:Trey|Trey]] 17:00, 7 March 2010 (EST)
=="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 ==
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!'''
By Jeff Story
Below is what I added to the WIKI and was deleted.
====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
$ cat /var/spool/mail/user_name
You should see in the terminal, the "your message", the time and date it was sent
:I see, it was deleted because there were too many repetitions, but unfortunately also some useful parts were deleted too. You're perfectly right, but I think that your addition could be condensed, avoiding the repetitive parts and only highlighting what has to be changed with respect to the procedure above. -- [[User:Kynikos|Kynikos]] 09:55, 19 March 2011 (EDT)

Revision as of 18:19, 21 August 2012