Difference between revisions of "Talk:Cron"

From ArchWiki
Jump to: navigation, search
Line 48: Line 48:
 
# pacman -S esmtp procmail  
 
# pacman -S esmtp procmail  
 
    
 
    
After installation create file {{Filename|~/.esmtprc}} with this content:
+
After installation create file {{ic|~/.esmtprc}} with this content:
  
 
mda "/usr/bin/procmail -d %T"  
 
mda "/usr/bin/procmail -d %T"  
Line 56: Line 56:
 
$ chmod 710 ~/.esmtprc
 
$ chmod 710 ~/.esmtprc
  
Create a file {{Filename|message.txt}} with "your message" in it.
+
Create a file {{ic|message.txt}} with "your message" in it.
  
From the directory containing {{Filename|message.txt}} run:
+
From the directory containing {{ic|message.txt}} run:
  
 
$ sendmail user_name < message.txt
 
$ sendmail user_name < message.txt

Revision as of 20:25, 13 February 2012

Expansion

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. --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. -- Jeff story 22:48, 18 March 2011 (EDT)

I pasted here your comment. -- 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!

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

  1. pacman -S esmtp procmail

After installation create file ~/.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 message.txt with "your message" in it.

From the directory containing 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

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. -- Kynikos 09:55, 19 March 2011 (EDT)
I have reorganized the content a bit, since it had become too redundant, as Pointone stated the first time he removed the section. I have taken care of keeping everything you added. -- Kynikos 16:08, 19 March 2011 (EDT)
I apologize; I did not notice that slight but important difference -- I just spotted two sections that were 95% identical. Thanks for cleaning this up properly. -- pointone 16:23, 19 March 2011 (EDT)

default?

My install is around a week old, and dcron is not installed by default. Searching with pacman indicates that the package cronie is already installed as part of the base group. dcron is part of no group. I feel someone with greater authority than I should confirm this and correct the article. Stevepoppers 11:38, 15 May 2011 (EDT)

Good catch: cronie will be the default cron daemon on new installs in the future. I'm not sure if all that's needed is a simple name change in the article though. Feel free to test it and fix what's needed.-- Karol 18:23, 15 May 2011 (EDT)
I have tried to change at least the installation part. You can also participate in this thread: https://bbs.archlinux.org/viewtopic.php?id=118104 and in this one you can see somebody has problems with the new implementation: https://bbs.archlinux.org/viewtopic.php?id=118921 -- Kynikos 10:18, 16 May 2011 (EDT)