LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-01-2013, 06:31 AM   #1
engrshon
LQ Newbie
 
Registered: Jan 2013
Posts: 2

Rep: Reputation: Disabled
Description


Can somebody describe each field of the below command

00 * * * * cd /backup ;sh seget.sh >>/tmp/alert.log 2>&1 &
 
Old 01-01-2013, 06:34 AM   #2
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,498

Rep: Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956
Where is the difficult part? It is a crontab entry whose format is described by
Code:
man 5 crontab
The commands are simple shell statements plus redirections. Please elaborate.
 
1 members found this post helpful.
Old 01-02-2013, 04:15 AM   #3
alieblice
Member
 
Registered: Jul 2011
Posts: 80

Rep: Reputation: Disabled
doing search and knowing good source of tutorials can always solve your questions sooner.
take look in this tutorial:
https://www.google.com/url?q=http://...61FiO_e9YzVtxg
 
Old 01-03-2013, 02:25 PM   #4
engrshon
LQ Newbie
 
Registered: Jan 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
description

thanks but kindly explain this field

... >>/tmp/alert.log 2>&1 &
 
Old 01-03-2013, 02:39 PM   #5
Habitual
Senior Member
 
Registered: Jan 2011
Distribution: Undecided
Posts: 3,320
Blog Entries: 5

Rep: Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784
Quote:
thanks but kindly explain this field

... >>/tmp/alert.log 2>&1 &
>> is append.
2>&1 is redirect
& is send to background.

http://www.adminschoice.com/crontab-quick-reference
http://stackoverflow.com/questions/8...ell-what-is-21
http://www.tldp.org/LDP/Bash-Beginne...tml/index.html

http://goo.gl/Rims

Last edited by Habitual; 01-03-2013 at 02:41 PM.
 
Old 01-03-2013, 06:40 PM   #6
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,269

Rep: Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028
... and for a cronjob, the last '&' is redundant
 
  


Reply


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
description fredus LinuxQuestions.org Member Intro 1 11-03-2009 01:52 PM
[SOLVED] $? - description RaptorX Programming 9 07-26-2009 12:05 PM
Is there any C++ api available to know the OS description? matrixdipu Programming 2 07-06-2009 09:04 AM
ls column description anjanesh Linux - Newbie 5 01-04-2006 04:45 AM
Sendmail description samd Linux - Software 4 07-09-2005 11:05 PM


All times are GMT -5. The time now is 10:54 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration