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

  • Home
  • SEARCH
  • 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 668629
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T00:03:42+00:00 2026-05-14T00:03:42+00:00

This is my question and apparently this is the answer . Turns out it

  • 0

This is my question and apparently this is the answer. Turns out it was a buffer problem (solution in the accepted answer of my ffmpeg link) not stdin. I found you can stdout to null by writing > NUL in command prompt so i tried writing < NUL at the end of my argument. No luck.

How do i pass in null or do something with the IO locks like that perl code does so i can get my ffmpeg script not locking up after 15 or so seconds? NOTE: I must get std out and err to check for failures.

  • 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-14T00:03:42+00:00Added an answer on May 14, 2026 at 12:03 am

    Update: The previous response was about how to close stdin on a process spawned from Perl, but the question is really about how to perform the task in .NET.

    The idea is the same. You want to close the handle to the new process’s standard input stream. In .NET, that can be done with

    app.StandardInput.Close()
    

    immediately after the call to app.Start().

    (I think you’ll also want to set app.StartInfo.RedirectStandardInput = true, but I’m not much of a .NET programmer and I’m not sure about that).


    NUL is a Windows convention, like Unix’s /dev/null. But on Unix > NUL will create a file called "NUL", and < NUL will cause your system call (i.e. system, backticks, etc.) to fail unless there is a file called "NUL".

    That said, there are portable ways in Perl to close the standard input to a spawned process. For example:

    open $fh, "| $command > outputfile 2> errorfile";
    close $fh;
    

    will launch $command and immediately close $command‘s standard input handle, as if you ran the command from the command line and immediately hit ^D.

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

Sidebar

Related Questions

I've seen this question asked around before, and found an answer for how to
Edit : This question has already been asked and answered, and I apparently am
I want to ask a question about UITableViewCell. Apparently, this is what I want
EDIT: I figured out the answer to the original YUI3 question I posted here,
So, this is a seemingly simple question, but I'm apparently very very dull. I
This question is a result of what i noticed while trying to answer another
Related to this question and this answer (to another question) I am still unable
[Edit: Apparently, this is only an issue for arrays and FoxyBOA's answer might direct
In this answer, I instructed the questioner not to overwrite the native Object function
IE8 is out and apparently it automatically turns on script (JavaScript) debugging whenever you

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.