LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 03-08-2013, 02:40 AM   #1
cmt2013
LQ Newbie
 
Registered: Feb 2013
Posts: 2

Rep: Reputation: Disabled
what is mean of exec 1


in my redhat server , a crontab script is below

exec 1> a.log
exec 2> b.log
script1
script2
script3
script4

what is the use of exec 1 ? thanks
 
Old 03-08-2013, 03:12 AM   #2
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,797
Blog Entries: 4

Rep: Reputation: 285Reputation: 285Reputation: 285
It is used to assign file descriptor i.e. fd to filename.

exec 1> is used to redirect standard output to a file named a.log.
exac 2> is used tp redirect standard error(s) to a file named b.log

Check this out here and here.

Last edited by shivaa; 03-08-2013 at 03:19 AM. Reason: Link added
 
  


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
exec {} \; ddaas Linux - General 3 02-05-2007 10:02 AM
exec cmd=perl... work but exec cgi doenst crions Slackware 5 12-09-2005 01:17 PM
c++ exec fosh Programming 2 07-04-2004 11:44 AM
cannot exec as person Linux From Scratch 5 12-19-2003 05:31 AM


All times are GMT -5. The time now is 12:57 PM.

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