Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


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

Rep: Reputation: 67
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:
*	3	*	*	*	wget -O /dev/null "" > /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
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 613Reputation: 613Reputation: 613Reputation: 613Reputation: 613Reputation: 613
1) yes
2) redirects STDERR to the same place STDOUT is going.
Old 01-27-2011, 08:01 PM   #3
Senior Member
Registered: Dec 2004
Posts: 1,025

Original Poster
Rep: Reputation: 67


crashing, cron

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:49 PM.

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