Skip to content
This repository has been archived by the owner on Jan 22, 2024. It is now read-only.

Change shell functions to python or other scripting language #2

Open
mamelara opened this issue Oct 25, 2017 · 1 comment
Open

Change shell functions to python or other scripting language #2

mamelara opened this issue Oct 25, 2017 · 1 comment

Comments

@mamelara
Copy link
Collaborator

Pretty minor all things considered but I wonder why the helper functions are in bash? Python is much more readable and has way more capabilities than bash.

I know it's additional work but could be a worthy investment

@sleak-lbl
Copy link
Member

I'm going to push back on this one - they're bash functions because I call them from bash, and they're mostly just stitching together sacct etc calls with command-line options I often use. Moving them to python would mean calling bash from python from bash, and python's "subprocess" support is clumsier than directly using bash

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants