I would like to write a shell script to run a lein replica, and then provide some commands, while preserving the replacement.
For example, I can do the equivalent:
lein repl (dev) (setup)
I can connect to the replica using echo "(dev)\n(setup)" | lein repl echo "(dev)\n(setup)" | lein repl , but after that the completion of the replacement is completed.
Is there a way around this or another replica launcher and issuing commands from a shell script?
source share