The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
OPeNDAP 3.8.5 (General-Purpose Handlers branch) iBot Software Releases - RSS News 0 04-26-2008 01:20 PM
whats the purpose of the following script? vrn UNIX for Dummies Questions & Answers 1 03-20-2006 05:15 PM
Purpose of lint in UNIX kumar_saurabh UNIX for Dummies Questions & Answers 1 09-25-2005 06:10 AM
Understanding the purpose of dup/dup2 Yifan_Guo High Level Programming 1 03-13-2005 08:00 AM
Looking for a general purpose System Monitor darthur UNIX for Dummies Questions & Answers 5 04-09-2002 12:12 PM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-27-2008
Registered User
 

Join Date: Apr 2008
Posts: 12
Purpose of 2>&1 in the command

Can any body kindly tell me what is the purpose of 2>&1 in the following commands.

nohup ./append_import.sh 1 > import1.out 2>&1 < /dev/null &
nohup ./append_import.sh 2 > import2.out 2>&1 < /dev/null &
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 05-27-2008
Registered User
 

Join Date: Apr 2008
Posts: 55
Redirect Standard error to CURRENT standard output(which could be file or /dev/null) ..
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 03:39 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0