6 ms·
Ask HN: How to manage long running scripts?
Is there a tool that allows me to manage a handful of bash and python scripts that I have running in a better manner? I was hoping for a GUI I could have my non-technical teammates check to see the status or output of a script rather than SSHing into a server and finding the output file.
For example: I have a script that curls icanhazip.com to check if the dynamic DNS IP we get has changed and then writes the time and IP to a simple text file. Ideally I would like the management site to show the contents of the text file and maybe read cron to see when it will run next.
Is there anything like this out there? My usual google-fu is failing me, thanks HN.
- Piskvorrr 7y agoYou seem to be looking for systemd units and some GUI on top of that.
- hexadec 7y agoYes, the GUI is the hard part it seems. I was hoping there was a solution that made it a bit easier to manage rather than checking the status of a dozen systemd units running and starting/stopping them or adding short lived scripts to cron or running them a single time.
- hexadec 7y agoSomething like Crawlab (https://github.com/crawlab-team/crawlab https://github.com/crawlab-team/crawlab) is what I was imagining. May fork this to make it work if some of the other suggestions do not pan out.
- hos234 7y agoNagioscore
- Nextgrid 7y agoRun your scripts in a CI environment like Jenkins or Concourse CI?
- gjvc 7y agohttps://www.rundeck.org/ https://www.rundeck.org/
- hexadec 7y agoThanks, this seems like the best answer for me, for future folks reading this, that URL has been updated to https://www.rundeck.com/open-source https://www.rundeck.com/open-source
- quickthrower2 7y agoIn your example why not use cron and have a short job run every minute. To get that data out there are a number of ways but if you are doing a lot of this stuff consider running logstash, elsaticsearch and kibana (referred to as ELK) to allow anyone to search those logs.
- LuNan 7y agoNow github has a CI environment
- abdelhai 7y agoTry https://wooey.readthedocs.io/en/latest/— https://wooey.readthedocs.io/en/latest/— Don’t think there’s a seamless product out there. I’m working on a Python scripting runtime with built-in dashboard and GUI. Happy to give you a demo.
- bebee 7y agooh
- bahjatm 7y agoI think any solution will carry some kind of automation I recommend checking https://concourse-ci.org/ https://concourse-ci.org/
- ecesena 7y agoAirflow may be a bit more involved than what you're asking, but it supports also dependencies among scripts, retries, etc.: https://airflow.apache.org https://airflow.apache.org