-2

How to call a c++ program in a shell script, is it the same as in this thread?

When I run a shell script I should get result of a c++ program.

3
  • Did you try calling it like a C program? If yes, what went wrong? Commented Jun 5, 2014 at 14:49
  • 1
    The answer is the exact same as the question you linked. Commented Jun 5, 2014 at 14:49
  • 1
    The answer to that question is the same as the answer to yours. Commented Jun 5, 2014 at 14:49

1 Answer 1

3

You, ah, run any program from a shell script by, um, calling it. All you need is a path to the executable and use that as your first string in the shell line. And command line agruments go after that (on the same line).

Sign up to request clarification or add additional context in comments.

1 Comment

This answer is 100% correct and reasonably friendly given circumstances. I'm upvoting.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.