I would like to use Julia to write some system script which will be run by cron/systemd or something similar. Which is the best way to install Julia for this usage ? The usual “user way” is convenient for user programs, but not sure about the cron/systemd or whatever I will use for that purpose.
Or maybe for this task I should stick to Python or shell script ?
The goal would be to automatically turn off the computer when some conditions are met (process running, users active…).
I had a look on the existing solutions. Jill seems interesting.
Thanks for your advice. I would like to try an interpreted file. However, I don’t know where I should let Julia be installed. For user programs, it is in ~/.julia or ~/.juliaup, but what would be suitable paths for daemons ? Maybe in /var or /opt ? But I’m not sure how to configure the usual install script for that.
How much do you control the server? Is it just one server where you want to install your script?
If you are admin, I would create a special user “cron” and install Julia with juliaup in /home/cron/.julia. Installing Julia in /var or /opt is creating too many issues, not worth the effort, from my point of view. You can then also adjust the permissions of the script (the user cron) as required.
Full control over the server. For now just one server, but will be deployed once finished on some other colleagues servers (who also have full control).
Seems like a good idea. However, since the main user account uses also Julia, I am tempted to do something to save space, but maybe not worth the trouble.