The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 and shell scripting languages 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 04:20 PM
whats the purpose of the following script? vrn UNIX for Dummies Questions & Answers 1 03-20-2006 09:15 PM
Purpose of lint in UNIX kumar_saurabh UNIX for Dummies Questions & Answers 1 09-25-2005 09:10 AM
Understanding the purpose of dup/dup2 Yifan_Guo High Level Programming 1 03-13-2005 12:00 PM
Looking for a general purpose System Monitor darthur UNIX for Dummies Questions & Answers 5 04-09-2002 03:12 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-27-2008
mmunir mmunir is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 18
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 &
  #2 (permalink)  
Old 05-27-2008
shafi2all shafi2all is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 68
Redirect Standard error to CURRENT standard output(which could be file or /dev/null) ..
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:19 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0