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 > Operating Systems > Linux > Ubuntu
.
google unix.com



Ubuntu Ubuntu is a complete desktop Linux operating system, freely available with both community and professional support.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Bilski: What It Means, Part 1 -- Red Hat on What It Means for FOSS iBot UNIX and Linux RSS News 0 03-01-2009 04:05 PM
logfile naveeng.81 Shell Programming and Scripting 1 04-07-2008 11:32 AM
last month's logfile deep_kol Shell Programming and Scripting 2 06-26-2007 02:27 PM
sort a logfile joerg Shell Programming and Scripting 7 06-23-2004 01:28 AM
get last section from large logfile kburrows Shell Programming and Scripting 9 05-23-2004 07:06 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-19-2009
balan_mca balan_mca is offline
Registered User
  
 

Join Date: Jun 2008
Posts: 15
Post What it means $who >> $logfile 2>&1 ?

could you explain me what its exactly will do?
  #2 (permalink)  
Old 08-19-2009
chompy chompy is offline
Registered User
  
 

Join Date: Aug 2009
Location: pwd
Posts: 65
$who and $logfile = a script variable, defined by the writer. Would have to see more of the script to tell you.

>> = append the output of a command (or in your case, value of the $who variable) to the end of a file.

2>&1 means to direct both STDOUT and STDERR to the same place, typically for logging purposes or even to suppress output of a script (like with cron)

In conclusion, it will append STDOUT and STDERR of $who to $logfile

Last edited by chompy; 08-19-2009 at 02:34 AM.. Reason: Forgot my conclusion
Reply

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 04:58 AM.


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