U
U
Unquice2020-04-23 15:10:49
linux
Unquice, 2020-04-23 15:10:49

How to create your argument (flag) to run the program in the terminal?

In short, now the quarantine and you need to do everything remotely and got the following task
- 1. Develop two applications for Linux, the first of which: system path specified by the PATH environment variable) - waits for the application to terminate and displays a termination message along with the return code PATH) - immediately continues execution (asynchronous launch)

Initially I tried to write via getopt but nothing came of it, maybe someone who understands this can give a hint (instruction) how to do it right?
Language C/C++

I will be very grateful.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
pfg21, 2020-04-23
@Unquice

all of the above can be done on the tower.
a small set of search queries will help you write the necessary lines.

G
GavriKos, 2020-04-23
@GavriKos

Language C/C++

You have arguments in main as parameters.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question