Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-04-2012, 02:43 AM   #1
Registered: Dec 2010
Distribution: ubuntu 10.04
Posts: 43

Rep: Reputation: 0
Use named fifo to do a useful and funny thing


We know that the espeak command can speak out anything you give to it,and I want
to use it to work together with the elinks command to scan any English website with its contents being read at the same time.So,my clever friends,any good ideas?

Still,I wonder if I can just type "myCommand theWebSite" to do it for saving types.

I think this may be related with fifo and alias,but i just can't figure out a method.
Thanks in advance!
Old 10-05-2012, 08:59 AM   #2
Registered: Dec 2006
Distribution: RHEL Debian
Posts: 42

Rep: Reputation: 15
Surely espeak would just read out the html code????????
Old 10-11-2012, 10:14 AM   #3
Registered: Dec 2010
Distribution: ubuntu 10.04
Posts: 43

Original Poster
Rep: Reputation: 0
Sorry for replying to you so late.
But I am afraid that you have not tried that yet.
  elinks | cat | espeak
That's it.But what I want is to browse the somesite at the same time.
And I wonder if I could divide the flow produced by "elinks | cat" into two parts,one for espeak,and the other for stdout,thus listening and reading at the same time.
Old 10-12-2012, 09:41 AM   #4
Senior Member
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,337

Rep: Reputation: 1499Reputation: 1499Reputation: 1499Reputation: 1499Reputation: 1499Reputation: 1499Reputation: 1499Reputation: 1499Reputation: 1499Reputation: 1499
cat never divides the flow, it only concatenates files; or, to continue the pipe metaphor, merges files into the flow. For dividing flow you want to use tee. The info page for tee shows some examples using the shell's process substitution.

For your case, it would be something like this:
 elinks | tee >(espeak)
1 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
What is meaning that a file is a named pipe (FIFO)? mei0fei Linux - Newbie 2 07-12-2011 06:48 AM
Question about reading/writing into a Named Pipes(FIFO) Sathya Programming 21 05-05-2008 08:39 AM
Funny thing happened on the way...... Rick069 Mandriva 5 11-01-2005 12:39 AM
Funny little thing... Mathiasdm General 2 01-15-2005 05:34 AM
Funny flash thing... Mega Man X General 2 05-07-2004 05:02 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:24 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration