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 > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
gethostbyname_r returns NULL when hostname has dash uunniixx IP Networking 12 06-04-2008 01:02 AM
Spicebird: Thunderbird, Lightning, and a dash of collaborative flavor iBot UNIX and Linux RSS News 0 03-07-2008 12:30 PM
double-dash options dhinge Shell Programming and Scripting 1 01-10-2007 10:32 PM
How to remove a file with a leading dash '-' in it's name? GSalisbury UNIX for Advanced & Expert Users 3 05-05-2003 11:28 AM

Closed Thread
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 03-11-2008
csecnarf csecnarf is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 18
dash after ampersant

Hi!

I'm new in these forums and more or less new with Unix. So... here is the question:

does anyone know where is redirected the output of a command when you put >&- after it?

Does it means any standard file descriptor?

Thanks!
  #2 (permalink)  
Old 03-12-2008
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2003
Location: Florida
Posts: 1,924
It means close stdout.

From ksh93 man page
Quote:
<&digit- The file descriptor given by digit is moved to standard input. Similarly for the
standard output using >&digit-.

<&- The standard input is closed. Similarly for the standard output using >&-.
  #3 (permalink)  
Old 03-12-2008
csecnarf csecnarf is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 18
So... by closing stdout you are sending the output to nowhere. Is like that?

Thank you!
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:57 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