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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T21:44:19+00:00 2026-06-15T21:44:19+00:00

On my server I am unable to redirect errors to a text file when

  • 0

On my server I am unable to redirect errors to a text file when using popen. The following code:

popen("echo 'this part works' &> /wwwroot/output.txt &","r");
popen("noCommandThatExist &>> /wwwroot/output.txt &","r");

Has the following output on my machine:

this part works
sh: noCommandThatExist: command not found

But the following output on the server:

this part works

If there was a write permission problem then “this part works” would not show, I wonder what’s going on here and why the error is not redirected to output.txt as it is on my local server.

Using Linux on the server (not Windows) so redirecting should work there as well.

  • 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-06-15T21:44:20+00:00Added an answer on June 15, 2026 at 9:44 pm

    Sorry, just found out that if I delete the first line I actually get the error.

    Maybe somehow the first command completes later than the second one and overwrites it or it’s something else but I can live with only the one command so will work with that.

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

Sidebar

Related Questions

If I use the following setting, I am unable to use Server.Transfer()/Response.Redirect() to redirect
I keep getting this error randomly: System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: Server was unable to process request.
I've got this 500 Internal Server Error - LogicException: Unable to guess how to
I am newly started using WAMP server. I am unable to deploy my java
Server Errors below: If an error occurred, a HTTP status code 503 (Service Unavailable)
I have the following code pasted below. For some reason, the response.redirect seems to
I'm trying to redirect all errors on the server back to my application so
I'm getting this error when trying to connect to a mongo server: Unable to
I found this question on here: PHP Soap Issue: Server was unable to process
Just a quick question. Say a call a method like so mysql_pconnect(server,tator_w,password) or die(Unable

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.