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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T23:28:53+00:00 2026-05-14T23:28:53+00:00

I am creating an interpreter for my extension to HQ9+, which has the following

  • 0

I am creating an interpreter for my extension to HQ9+, which has the following extra command called V:

V: Interpretes the code as Lua, Brainfuck, INTERCAL, Ruby, ShellScript, Perl, Python, PHP in that order, and if even one error has occoured, run the HQ9+-ABC code again

most of them have libraries, BF and INTERCAL can be interpreted without a library, but the problem lies in ShellScript. How can I run a shellscript from my C++ application ( =the HQ9+-ABC interpreter) and when it’s done, get the error code (0 = succeded, all others = failed)? So something like this:

system(".tempshellscript738319939474");
if(errcode != 0) { (rerun code); }

can anyone help me? Thanks

  • 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-14T23:28:54+00:00Added an answer on May 14, 2026 at 11:28 pm

    From man system(3):

        RETURN VALUE
           The value returned is -1 on error (e.g. fork failed),  and  the  return
           status  of  the command otherwise.  This latter return status is in the
           format specified in wait(2).  Thus, the exit code of the  command  will
           be  WEXITSTATUS(status).   In  case  /bin/sh could not be executed, the
           exit status will be that of a command that does exit(127).
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating a Brainfuck parser (in a BASIC dialect) ultimately to create an interpreter
I am creating an interpreter from IL (A compiled C#\VB code) to C. I
I've been experimenting with creating an interpreter for Brainfuck, and while quite simple to
I am creating an interpreter for my esolang, and I need the user to
I want to hack around with the Python interpreter and try creating a small
I am looking at creating a small interpreter for C# that I could load
Whilst creating an inline ANTLR Tree Grammar interpreter I have come across an issue
I need to execute code from my python script and take interpreter-style output like
I've been given a school project which involves creating an online invoicing system in
I'm an amateur with ANTLR and I'm creating an interpreter for a simple processor

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.