Unix Shell - Re: "cat <> file" and "echo "ddd" >&2 2>&am

This is Interesting: Free IT Magazines  
Home > Archive > Unix Shell > August 2007 > Re: "cat <> file" and "echo "ddd" >&2 2>&am





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: "cat <> file" and "echo "ddd" >&2 2>&am
John DuBois

2007-08-22, 1:23 pm

In article <fa9em7$e8h$1@news.yaako.com>, Key9 <publicaccept@163.com> wrote:
>which "fd" be used on earth?
>Is there any way to display what fd be used?
>like :
>$echo "ddd"
>1:ddd


If you're wondering how to tell which of the open fds that a program inherits
it is writing output to, this utility may help:
ftp://ftp.armory.com/pub/scripts/fdshow

Example:

$ fdshow echo ddd
1: ddd

John
--
John DuBois spcecdt@armory.com KC6QKZ/AE http://www.armory.com/~spcecdt/
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com