FAQ

How do setup monitor to be run regularly?

You can use cron job to run the script regularly.

Here is an example cron job for running the script every hour:

*/1 * * * * python /path/to/monitor.py /path/to/folder

Here is an example cron job for running the script every day at midnight:

0 0 * * * python /path/to/monitor.py /path/to/folder

For Windows users, you can use Scheduled Task to run the script regularly.

How can I copy data from a remote server?

You can use one of the following tools to copy data from a remote server:

  1. rsync
  2. scp
  3. sftp

For Windows platform you can use WinSCP or OpenSSH.

Auto-update

If you want to always use the latest version of the script, you can run the following command so it will be automatically updated when a new version is released:

sg-monitor update && sg-monitor /path/to/folder

I have an error 'Couldn't find sg-upload-v2-latest.jar' when running the script

Probably you're running the script for the first time.

Script will be downloaded automatically during Authentication step (see Authentication section for more details). Please run the following command to download the latest version of the CLI JAR:

wget https://ddm.sophiagenetics.com/direct/sg/uploaderv2/sg-upload-v2-latest.jar