On Wed, 24 Apr 2002, Floyd Shackelford wrote: > i found the following two files with the string "print command": > > ./param/loadparm.c: {"print command", P_STRING, P_LOCAL, > &sDefault.szPrintcommand, NULL, NULL, FLAG_PRINT | FLAG_GLOBAL},
loadparm.c is for declaring parameters and parsing smb.conf. > ./printing/print_generic.c: run a given print command > > as best as i can tell, it's NOT loadparm.c. so that leaves > print_generic.c That's what I was thinking of. > if (strcmp(syscmd,"print command") == 0) > { > // do my thing > } > ret = smbrun(syscmd,outfd); > > DEBUG(3,("Running the command `%s' gave %d\n",syscmd,ret)); Why not just make your command a wrapper that executes the lpr command? Something like #!/bin/sh my_command $1 lpr -P$2 $3 /bin/rm -f $3 and add a "print command = some_script.sh %I %p %s" No code changes necessary. cheers, jerry --------------------------------------------------------------------- Hewlett-Packard http://www.hp.com SAMBA Team http://www.samba.org -- http://www.plainjoe.org "Sam's Teach Yourself Samba in 24 Hours" 2ed. ISBN 0-672-32269-2 --"I never saved anything for the swim back." Ethan Hawk in Gattaca-- -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba