Cat Write Error Broken Pipe Apache
Contents |
Search HCL Search Reviews Search ISOs Go to Page... LinuxQuestions.org > Forums > Linux Forums > Linux - Server bash scripting sending "cat: write error: Broken dracut cat write error broken pipe pipe," User Name Remember Me? Password Linux - Server This forum is
Grep Write Error Broken Pipe
for the discussion of Linux Software used in a server related context. Notices Welcome to LinuxQuestions.org, a friendly and ls write error broken pipe active Linux Community. You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to
Ls Write Error Broken Pipe Python
threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today! Note that registered members see fewer ads, and ContentLink is completely disabled once you log in. Are you new to LinuxQuestions.org? Visit the following links: Site Howto | Site FAQ | Sitemap | Register Now If you have any problems with the registration process or echo write error broken pipe your account login, please contact us. If you need to reset your password, click here. Having a problem logging in? Please visit this page to clear all LQ-related cookies. Introduction to Linux - A Hands on Guide This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter. For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own. Click Here to receive this Complete Guide absolutely free. Search this Thread 04-19-2010, 05:39 PM #1 rojoblandino LQ Newbie Registered: Nov 2007 Distribution: SuSE Debian Posts: 22 Rep: bash scripting sending "cat: write error: Broken pipe," I move a pa
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads
Write Error Broken Pipe Android
with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the
Socketclient Write Error Broken Pipe
Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: grep write error on login Sign up How to avoid “ls: write error: Broken pipe” with php exec up vote 1 down vote favorite In PHP I am running this command: exec ("ls -U ".$folder." |head -1000", $ls_u); This command is inside a PHP file, run http://www.linuxquestions.org/questions/linux-server-73/bash-scripting-sending-cat-write-error-broken-pipe-802943/ directly by PHP on the console and throws this error: ls: write error: Broken pipe What causes this error? Or is using pipes in PHP exec not a good idea? php share|improve this question edited Jul 29 '14 at 17:51 Eric Leschinski 46.2k23221190 asked Jul 2 '12 at 15:35 enedebe 611311 add a comment| 2 Answers 2 active oldest votes up vote 0 down vote I believe there's a syntax error in the console command, and suggest escaping the arguments with escapeshellarg(). exec('ls http://stackoverflow.com/questions/11296809/how-to-avoid-ls-write-error-broken-pipe-with-php-exec -U '.escapeshellarg($folder).' | head -1000', $ls_u); share|improve this answer answered Jul 2 '12 at 15:39 Samy Dindane 9,81122339 add a comment| up vote 0 down vote In Linux with PHP on the terminal, you can reproduce this error with this code: main.php: Then running it like this on the terminal: eric@dev ~ $ php main.php ls: write error: Broken pipe The error happens because you are running a command which returns data and you are not catching it, so it complains about a broken pipe. I was able to fix it like this: Then it works, printing: eric@dev ~ $ php main.php main.php anotherfile.txt Note, you'll have to stick the fread(...) in a loop if you want to get all the output from ls. share|improve this answer edited Jul 29 '14 at 18:15 answered Jul 29 '14 at 17:42 Eric Leschinski 46.2k23221190 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Not the answer you're looking for? Browse other questions tagged php or ask your own question. asked 4 years ago viewed 2446 times active 2 years ago B
Re: http://marc.info/?t=98897405600003&r=1&w=2 general/7673: Apache reports 'cat: write error: B apache-bu Varty, Mike 2. 2001-05-21 Re: general/7673: Apache reports 'cat: write error: B apache-bu Varty, Mike 3. 2001-05-21 Re: general/7673: Apache reports 'cat: write error: B apache-bu Varty, write error Mike 4. 2001-05-11 Re: general/7673: Apache reports 'cat: write error: B apache-bu Varty, Mike 5. 2001-05-11 Re: general/7673: Apache reports 'cat: write error: B apache-bu Varty, Mike 6. 2001-05-11 Re: general/7673: Apache reports 'cat: write write error broken error: B apache-bu Varty, Mike 7. 2001-05-11 Re: general/7673: Apache reports 'cat: write error: B apache-bu Varty, Mike 8. 2001-05-11 Re: general/7673: Apache reports 'cat: write error: B apache-bu Varty, Mike 9. 2001-05-04 Re: general/7673: Apache reports 'cat: write error: B apache-bu Mike Varty 10. 2001-05-04 Re: general/7673: Apache reports 'cat: write error: B apache-bu Mike Varty 11. 2001-05-04 Re: general/7673: Apache reports 'cat: write error: B apache-bu Mike Varty 12. 2001-05-04 general/7673: Apache reports 'cat: write error: Broke apache-bu Mike Varty 13. 2001-05-04 general/7673: Apache reports 'cat: write error: Broke apache-bu Mike Varty Configure | About | News | Addalist | SponsoredbyKoreLogic