Savant S2/2000 Deployment Guide Copyright © 2019 Savant Systems, LLC
009-1914-00 | 191231 18 of 24
7.2. Executing Scripts on the Host
Custom scripts, workflows, and other programming can be executed on Savant Hosts using sclibridge, a command line utility used to interact directly
with the Savant Host via Terminal for advanced customization.
When using an SHR-S2, SHR-2000, or other Linux-based Hosts, the sclibridge utility is located within the Host filesystem in the directory shown
below:
/usr/local/bin/sclibridge
This is dierent from the location of the utility for Savant Pro, Super Pro, or any other MacOS-based Host, and should be kept in mind when writing
or testing any such scripts or workflows.
A standard UNIX utility can be used to determine the platform any script is running on, and adjust accordingly. See example below for reference:
#!/usr/bin/perl -w
$osType = `uname`;
chomp($osType);
$sclibridge = undef;
if($osType eq "Linux OS")
{
print "Running on Linux\n";
$sclibridge = "/usr/local/bin/sclibridge";
}
elsif($osType eq "Mac OS")
{
print "Running on Darwin\n";
$sclibridge = "/Users/RPM/Applications/RacePointMedia/sclibridge";
}
else
{
print "Running on Unknown: $sclibridge\n";
}