A
A
Andrey Belyaev2021-02-13 22:33:24
linux
Andrey Belyaev, 2021-02-13 22:33:24

How can I execute a bash command from a file.cfg file?

I have a configuration file file.cfg how to call the chmod +x bin/php7/bin/php command from it

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Saboteur, 2021-02-13
@saboteur_kiev

What nonsense.
How do you want to call a shell command from the configuration file of an incomprehensible program?
Either specify what you mean at all, or not at all.

S
SOTVM, 2021-02-14
@sotvm

in the terminal, read/grab the desired line/parameter from .cfg and execute
bash -c $(grep 'part of your command' your.cfg)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question