- install python package manager pip in local user dir
> curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py”
> python get-pip.py --user
> rm get-pip.py
- install requests module in user dir
> .local/bin/pip install --user requests
- add update script to crontab
> crontab -e
In the editor, fill in:
0 4 * * * /srv/molgenis/run-ibd-script.py
(Script will run at 4 am every day)
-
Create a token for user that can run the script Set its expiration date to null.
-
put
run-ibd-script.py
in the molgenis user's home dir on the server, fill in the token you've just created. -
Add the plot script in the molgenis scripts plugin
Attribute | Value |
---|---|
Script type | R |
Name | run-ibd-script.py |
Script content | See script.R |
Extension | png |
Generate token | no |