The problem is due to Print Job file generated while the private Job is ON. The “Title” keyword is present twice, the first one with empty string and second one with the proper file name. The “smbprint.sh” scans for %%Title to define the print job name where the first instance of Title has empty string.
Smbprint.sh code sniffer
if [ $filetype = 4 -o $filetype = 6 ]
then
#...