LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 08: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, 08: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, 08:56 AM   #3
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
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 09:01 AM.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:31 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration