LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Re-Directing stdin and stdout at the same time

[ILUG] Re-Directing stdin and stdout at the same time

Burke, Gary : GIG IS&T Gary.Burke at guinnessudv.com
Mon Jul 2 16:03:33 IST 2001


] echo "Hello, world" | cat 1>>&0

cat >> /tmp/file < /tmp/file

This does cause a loop (so long as /tmp/file exists and is not a 0 length
file).

You can't redirect for append to &0, but you can redirect to &0...

cat 1>&0
Doesn't do much though - everything you type in still appears on screen.

Anyone any ideas on how to do this?  My curiosity has been perked.


Gary




**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell