Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6119215
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:31:37+00:00 2026-05-23T15:31:37+00:00

I am calling find from a perl script like this: my $one_file = `find

  • 0

I am calling find from a perl script like this:

    my $one_file = `find $search_dir -name "\*.$refinfilebase.search" -print | head -n 1`;

If I execute it from the shell, I get no error. Also, it returns the right value to $one_file, but I get this on the prompt:

find: write error: Broken pipe

Why would that be? How can I get rid of this find: write error: Broken pipe message?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T15:31:37+00:00Added an answer on May 23, 2026 at 3:31 pm

    You could try this (although I did not manage to reproduce your error message using the code you posted, so perhaps this error-free version of mine might give you an error message as well…):

    my $file = `find $search_dir -name "\*.ssf" -print -exec head -n 1 {} \\;`;
    

    Here’s some sample output I got from a test run:

    ./tmp1.ssf
    HEADER    PROTEIN                                 21-FEB-11     1PDB
    

    HTH

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How do I find the method name of the calling method from a method
I find myself calling functions from lambdas frequently as the provided delegate does not
From what I understand, calling NSLog(@Local Time Zone %@,[[NSTimeZone localTimeZone] name]); gives you the
Naive question I believe, but all I find is just calling other constructors from
I'm calling a WCF service from an ASP.NET application. From this, I am accessing
I have this xml result from calling the page getRout.php <?xml version=1.0 encoding=UTF-8?> <kml
I've been working with Vector2's and XNA, and I've come to find that calling
I'm getting the following error when calling a stored procedure: Cannot find the object
Calling Html.RenderPartial(~/Views/Payments/MyControl.ascx); from a view works if MyControl.ascx is a control that directly inherits
According to posts from 2008 (I can't find it right now), glibc heap check

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.