LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 08-16-2005, 09:11 AM   #1
Nubian
LQ Newbie
 
Registered: Aug 2005
Posts: 10

Rep: Reputation: 0
Broken pipe?


What's a broken pipe error mean and how do you fix it?

All I wanna do is mount a cd in the terminal and it said only root can mount so I try sudo /mnt/cdrom and it asks me Password: so I put mine in and get Broken pipe and the prompt again.

I made a mistake before using the terminal entering in the wrong password a few times and since then I get this Broken pipe thing. How do I fix it?
 
Old 08-16-2005, 09:25 AM   #2
Nubian
LQ Newbie
 
Registered: Aug 2005
Posts: 10

Original Poster
Rep: Reputation: 0
Oopsie never mind, my fstab for dev/cdrom was set "owner" not "user" But I still wanna know what "Broken pipe" means exactly.
 
Old 08-16-2005, 09:56 AM   #3
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,153

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
OK, when your command output is used as input to another command, it is "piped" into the command. In the Bourne shell, the usual "pipe" is indicated by a vertical bar. For example, if you wanted to list all files in a directory containing the word "test," you could "pipe" the output of the "ls" command into the "grep" command like this:
Code:
$ ls | grep "test"
Now, once you set that up, both commands must work together. If one fails, then the "pipe" is broken, and the shell gives you the "broken pipe" message.

In your specific case, your command syntax looks strange to me, and you don't mention what distribution you're using. (Hint: Click on "My LQ" at the top of the page and fill out the registration form. Then that information will automatically be displayed with your message in the frame at the left.) But sudo would normally apply to only the first command in a string of commands, and, probably, one of the later commands also needed su to run, so it failed and "broke the pipe."

Last edited by PTrenholme; 08-16-2005 at 10:01 AM.
 
  


Reply


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
Broken Pipe with ALSA MatesL Linux - Software 4 11-10-2005 04:44 AM
rdesktop broken pipe... reitsma Linux - Software 1 06-04-2004 06:30 AM
Broken pipe ? Red evil Linux - Software 1 01-16-2004 06:01 AM
Broken Pipe Cynthia Blue Linux - Newbie 0 12-30-2002 03:31 PM
ls - Broken pipe vcheah Linux - Software 2 10-30-2002 09:10 PM


All times are GMT -5. The time now is 09:03 AM.

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