Amador, Orlando M. [OBI]
1999-May-17 19:26 UTC
%s and %f in the print command expand to the same thing.
I created a custom printer in the smb.conf with a parameter: [fax] comment = Fax Server path = /var/spool/samba guest ok = Yes min print space = 2000 print ok = Yes printing = lprng print command = /usr/local/bin/submitfaxspool_background -m %M -u %u %s lpq command = /usr/local/lib/mgetty+sendfax/faxlpq %p lprm command = /usr/local/lib/mgetty+sendfax/faxcancel %j lppause command = /usr/local/lib/mgetty+sendfax/faxpause %j lpresume command = /usr/local/lib/mgetty+sendfax/faxresume %j The problem is that %s in the print command is not expanding to the full path of the file. I had to add the spool directory to the print command line. %f expands to the same as %s. According to the documentation %s should be the full path, correct? Here is the part of the documentation that I'm reading: The full path name will be used for the filename if "%s" is not preceded by a '/'. If you don't like this (it can stuff up some lpq output) then use "%f" instead. Any occurrences of "%f" get replaced by the spool filename without the full path at the front. When it says "if '%s' is not preceded by a '/'" does it means the character just before the "%" or does it means anywhere in the line? I can explain why %s is not expanding to the full path name. Could anyone help me figure this out? Saludos, Orlando Orlando M. Amador oamador@obipr.jnj.com <mailto:oamador@obipr.jnj.com> (787) 854-1800 x2294