LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-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
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
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
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
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
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

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


Reply



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

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

All times are GMT -5. The time now is 11:46 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