LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-27-2011, 07:37 PM   #1
sneakyimp
Senior Member
 
Registered: Dec 2004
Posts: 1,056

Rep: Reputation: 78
cron pattern - every minute?


I have been asked to tune up a server that keeps crashing. I'm looking at the cron jobs and found this one:
Code:
*	3	*	*	*	wget -O /dev/null "http://www.domain.com/index.php?option=com_acymailing&ctrl=cron" > /dev/null 2>&1
Aside from invoking a PHP script by calling wget to the local web server and routing the output to dev/null, I'm wondering if there are other problems.

1) Am I correct in thinking that this script will run every minute from 3am to 4am? The pattern is *3***.

2) What does the 2>&1 bit at the end do?

Any help would be much appreciated.
 
Old 01-27-2011, 07:51 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
1) yes
2) redirects STDERR to the same place STDOUT is going. http://tldp.org/LDP/abs/html/io-redirection.html
 
Old 01-27-2011, 08:01 PM   #3
sneakyimp
Senior Member
 
Registered: Dec 2004
Posts: 1,056

Original Poster
Rep: Reputation: 78
Thanks!
 
  


Reply

Tags
crashing, cron



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Running a cron every 7 minutes but to cary over the 7 minute count to the next hour? ghurty Linux - Server 15 10-09-2013 06:45 PM
[SOLVED] cron jobs for less than a minute golden_boy615 Linux - General 4 05-09-2010 06:55 AM
cron at every 51st minute cooljai Linux - Software 7 02-23-2009 06:49 AM
Cron - "incorrect minute" what's wrong? Vort3x Linux - Server 4 10-10-2007 04:55 AM
5 minute cron jobs for mrtg and gate_news shawn_t Linux - Software 3 12-22-2004 05:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration