LinuxCronJob - GeneralElectric/TrueConnect-Link GitHub Wiki

Here is a good explanation of how cron works if you want to dig into this, otherwise just enter the commands below and you will be fine.

Firstly you will need to have set-up a user to execute TrueConnect-Link, once this is done you need to switch to this user and execute the following.

 crontab -e
 5 * * * * /usr/bin/flock -n /usr/local/bin/trueconnectlink/someTCuser.lockfile /usr/local/bin/trueconnectlink/TrueConnectLink -c:Auto -u:someTCuser

The above command will, every five minutes, attempt to create a lockfile which will exist for the duration of time it takes for the command "TrueConnectLink -c:Auto -u:someTCuser" to execute. If it is unable to create the lockfile then the command is not executed.

In the above example "someTCuser" should be replace by the client name used to connect to TrueConnect.