Python has the Fabric library to perform such actions, does Clojure have options like that ?
You should take a look to stevedore, it's used extensively in pallet.
From the script reference:
(use '[pallet.stevedore :only [script with-script-language]])
(use '[pallet.script :only [with-script-context]])
(require 'pallet.stevedore.bash) ;; for bash output
(with-script-language :pallet.stevedore.bash/bash
(with-script-context [:ubuntu]
(script
("ls")))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With