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 3312012
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T21:56:38+00:00 2026-05-17T21:56:38+00:00

I have a command line utility from a third party (it’s big and written

  • 0

I have a command line utility from a third party (it’s big and written in Java) that I’ve been using to help me process some data. This utility expects information in a line delimited file and then outputs processed data to STDOUT.

In my testing phases, I was fine with writing some Perl to create a file full of information to be processed and then sending that file to this third party utility, but as I’m nearing putting this code in production, I’d really prefer to just pipe data to this utility directly instead of first writing that data to a file as this would save me the overhead of having to write unneeded information to disk. Is there any way to do this in unix?

Currently I call the utility as follows:

bin/someapp do-action --option1 some_value --input some_file

I’d like to do something like:

bin/someapp do-action --option1 some_value --input $piped_in_data

Is anything like that possible without my modifying the third party app?

  • 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-17T21:56:39+00:00Added an answer on May 17, 2026 at 9:56 pm

    You should be able to use /dev/stdin:

    bin/someapp do-action --option1 some_value --input /dev/stdin
    

    (Note that on some systems, /dev/stdin is a symlink; if your Java program doesn’t cope with that, you might have to use /dev/fd/0 or something similar instead.)

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

Sidebar

Related Questions

I have a command-line utility that gets quite a bit of downloads from my
I have a small command line utility project that I'm using Maven to manage.
I've written a command line utility that uses getopt for parsing arguments given on
I developed a command-line utility which needs to be called from a Java GUI
I have a command line executable that alters some bits in a file that
I have a small command line program that uses the Team System API. When
Specifically I have a PHP command-line script that at a certain point requires input
I'm writing a simple ruby sandbox command-line utility to copy and unzip directories from
I want to make a command-line utility that does some operations based on reflection
I'm using the excellent UNIX 'comm' command line utility in an application which I

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.