passing environment to command in bash for loop one liner -
bash in {1..1}; pool_size=10 bundle exec sidekiq -e production -c 50 -c ./config/sidekiq.yml & done
# => bash: syntax error near unexpected token `do'
what have missed?
if don't want utilize script , indeed want pass list of commands string straight bash
executable, utilize -c
option, , quote entire string:
bash -c 'for in {1..1}; pool_size=10 bundle exec sidekiq -e production -c 50 -c ./config/sidekiq.yml & done'
bash
No comments:
Post a Comment