3DIndex (BBDAdminPlayer) Issues Specific to crontab
Issue: When using crontab to start the Indexing, you may see errors such as:
line 1: 3359 Segmentation fault (core dumped) /../../DassaultSystemes/R2022x/VolumeSearch..xxxxx
Workaround: When using crontab commands to start the Indexing or any other DS tool, do not
forget to define the PATH
environment variable correctly beforehand. If the
PATH
variable is incorrect, the indexing command quickly fails at its
start, since some executables and mandatory environment variables are missing.
Below is an example of PATH
variable declaration in the
Indexer.sh
, called from the crontab.
echo $PATH PATH=$PATH:/usr/bin:/bin:/usr/lib64/qt-3.3/bin:/root/perl5/bin:/usr/lib64/ccache:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin export $PATH /home/data/RTV/R2022xBSFsupl197/3DIndex/linux_a64/code/bin/CATSTART -run "BBDAdminPlayer -EnvName 3DIndex_DefaultEnv" -env Env -direnv "/home/data/RTV/R2022xBSFsupl197/3DIndex/CATEnv"