]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/kaldi.git/blobdiff - egs/timit/s5/cmd.sh
[scripts] Change hostname -d to hostname -f for mac compatibility.
[processor-sdk/kaldi.git] / egs / timit / s5 / cmd.sh
index 046eb7db250074ae5d20f6160132c0f3486b7087..6c6dc88ce1a85986401d8aa411c420c10c0ee38b 100644 (file)
@@ -15,7 +15,7 @@ export decode_cmd="queue.pl --mem 4G"
 # the use of cuda_cmd is deprecated, used only in 'nnet1',
 export cuda_cmd="queue.pl --gpu 1"
 
-if [ "$(hostname -d)" == "fit.vutbr.cz" ]; then
+if [[ "$(hostname -f)" == "*.fit.vutbr.cz" ]]; then
   queue_conf=$HOME/queue_conf/default.conf # see example /homes/kazi/iveselyk/queue_conf/default.conf,
   export train_cmd="queue.pl --config $queue_conf --mem 2G --matylda 0.2"
   export decode_cmd="queue.pl --config $queue_conf --mem 3G --matylda 0.1"