I installed a samba service on my raspberry pi 3 linux: Jessie (Debian 8). smb.conf[global]  netbios name = medicalexporter  workgroup = WORKGROUP  public = yes  # Run a WINS server  wins support = yes  local master = yes  preferred master = yes  os level = 65  log level = 10  log file = /home/pi/logs/samba.log.%m[SambaTest]  comment = Samba-Test-Freigabe  path = /home/pi/shares/test  read only = no[pdfCreatorLinux]  path = /tmp  printable = yes  guest ok = yes  print command = /usr/bin/printpdf %s  lpq command =  lprm command =/usr/bin/printpdf#!/bin/shLOG_FILE=/home/pi/logs/pdf.logexec 3>&1 1>>${LOG_FILE} 2>&1DATE=date +%b%d-%H%M%SOUTDIR=/home/pi/shr/pdfdropboxhello >> /home/pi/logs/2.logps2pdf $1 \$OUTDIR/\$DATE.tempmv \$OUTDIR/\$DATE.temp \$OUTDIR/\$DATE.pdfrm \$1For testing purposes I gave this script the permission 777 with sudo chmod 777 /usr/bin/printpdfsamba foldermkdir -p ~/shr/pdfdropboxchown root:root ~/shr/pdfdropboxchmod u+rwx ~/shr/pdfdropboxThe samba service has a user and smbd & nmbd are running. I can see the samba service on my mac under sharing and access the sharing folder. I see the printer under my network printers. When I print a document via the samba printer, it shows me that it is connecting, sending the data and that the data is received without failure.But the /usr/bin/printpdf seems not to be executed. There is nothing in the /home/pi/logs besides the logs from samba itself (two logs, one with the name of my computer and one with an ip).When I start the pdf script manually the logs get created.PS: I mostly sticked to that tutorial:http://www.tldp.org/LDP/LG/issue72/bright.htmlQuestionWhy is the script not executed?
Samba Service Printer Does Not Execute
samba;printing