0

This file has the parameters:

root@moodle:/usr/src# cat plugins_filtered 
--release 2019042008 mod_bigbluebuttonbn
--release 2020020500 mod_hvp
--release 2020043003 block_xp

This are the commands I would like to execute:

root@moodle:/usr/src# while read in; do echo moosh plugin-install "$in"; done < /usr/src/plugins_filtered
moosh plugin-install --release 2019042008 mod_bigbluebuttonbn
moosh plugin-install --release 2020020500 mod_hvp
moosh plugin-install --release 2020043003 block_xp

If I go one by one everything works, if I remove the ok, I get errors:

root@moodle:/usr/src# while read in; do moosh plugin-install "$in"; done < /usr/src/plugins_filtered
Option 'release' requires a value.
Moosh global options should be passed before command not after it.Option 'release' requires a value.
Moosh global options should be passed before command not after it.Option 'release' requires a value.
Moosh global options should be passed before command not after it.root@moodle:/usr/src# 
1
  • 2
    Did you try <plugins_filtered xargs -l1 bash -c 'moosh plugin-install "$@"' _? Commented May 8, 2020 at 2:49

1 Answer 1

1

Try


while read in; do echo moosh plugin-install "$in" | bash; done < /usr/src/plugins_filtered

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.