![]() |
Well if you need to print in EPS, you only have to set the tab 'optimize for' to 'Encapsulated Postscript' in the driver. But I'm quite surprised.. I use sambafax for long, with 'maximum portability' set to the driver, and encountered no trouble. I persist to think that there could be a problem with cups. -- Phil. -----Message d'origine----- De : hylafax-users-bounce@hylafax.org [mailto:hylafax-users-bounce@hylafax.org] De la part de Shafeer Hajamohideen Envoy� : mercredi 14 mai 2003 13:59 � : Xware Cc : hylafax-users@hylafax.org Objet : [hylafax-users] RE : RE : SambaFax problem scanning Fax-Nr On Tue, 2003-05-13 at 16:24, Xware wrote: > IMHO, this has perhaps something to do with cups. I never tried it > with cups but it works pretty well with the Hp driver and LPR samba > side... Perhaps should you look this way ? > In my earlier post, i've told that sendfax can't recognise the file format unless its printed as EPS. I've temporarily made a fix in the sambafax script file for the moment to test this! To my surprise it worked! Here is the change I made to the sambafax script; #!/bin/sh # constants SENDMAIL="/usr/sbin/sendmail" PS2ASCII="/usr/bin/ps2ascii" # Included this to fix the file send from the WIN'98 client FIXPS="/usr/bin/fixps" AWK="/bin/awk" SENDFAX="/usr/bin/sendfax" # make up a temporary file FAXFILE=/tmp/sambafax.$$ # make a temp file that is used to fix the incoming ps format PSFILE=/tmp/sambafax.ps # retrieve the username and hostname from the paramaters Username=$2 ..[snip].. # if faxnumber is found fax the tempfile # we donot check the validity of the faxnumber, let sendfax do this... if [ "${FAXNUM}" = "" ] ; then ..[snip].. else # Included to fix the file to comply with the format supported by sendfax ${FIXPS} ${FAXFILE} -o ${PSFILE} ${SENDFAX} -n -D -f ${MailTo} -d ${FAXNUM} ${PSFILE} fi # remove the temp file rm -f ${FAXFILE} # also remove the ps file rm -f ${PSFILE} # end of show But I think there should be some better way to do this (i.e) to tell the windows client to print as EPS or may be something else in the server side. I'm a newbie and I don't know what could be a good solution. Thanks for your help and support! -Shafeer > -- > Phil. > > -----Message d'origine----- > De : hylafax-users-bounce@hylafax.org > [mailto:hylafax-users-bounce@hylafax.org] De la part de Shafeer > Hajamohideen Envoy� : mardi 13 mai 2003 15:56 > � : Xware > Cc : hylafax-users@hylafax.org > Objet : Re: [hylafax-users] RE : SambaFax problem scanning Fax-Nr > > > Hi, > > Thanks for your valuable advise. > > On Tue, 2003-05-13 at 09:22, Xware wrote: > > Well it has perhaps something to do with the driver. You should try > > this > > : > > Use the Hewlett-packard laserjet 4 PS driver. > > Set the postscript option to : maximum portability. > > The number is perhaps not understood because of a postscript problem > > (like generation encapsulated code or something like that). > > Hope this helps. > First thing I've changed the client side driver of the sambafax > printer from Apple PostScript driver to HP laserjet 4/4L PS and > printed a word document containing a line with; > > Fax-Nr : 04077291010 > > > > Remember : in any case, no dashes, no points, no spaces in the fax > > number (the script cuts the number as soon as it encounters something > > else than a number) > > Then I changed the format of the fax number in the debug script from > the format; > > FAXDEST="+49-40-77291010" > > to > > FAXDEST="04077291010" > > without any spaces, dots or dashes, the debug script worked, I got a > mail, got a test fax and it seems the problem lies in ps2ascii > conversion. The debug log looks like this; > > your sambafax-script has been started! > cat: -: Bad file descriptor > cat: -: Bad file descriptor > cat: -: Bad file descriptor > cat: -: Bad file descriptor > > p0: /usr/lib/cups/backend/sambafax --this is the sambafaxscript and > location > p1: > p2: --under cups this should be the username > p3: > p4: > p5: > p6: --under cups this is optional the sambafax temporary printfilename > p7: > p8: > > program /usr/sbin/sendmail exists > program /usr/bin/ps2ascii exists > program /bin/awk exists > program /usr/bin/sendfax exists > /usr/bin/ps2ascii: line 18: 740 Killed gs $OPTIONS -c > save -f ps2ascii.ps $1 -c quit > > Faxnumber extracted: "". > The mailing system is tested, you (root) should receive a mail request > id is 2 (group id 2) for host localhost (1 file) A fax is sent to > 04077291010, check it out If it does not come out, or if you see > errors, you are NOT using the correct sendfax (have you installed a > different faxspooler as well?) end-of-debuglog > > Please note the fax number extracted from the file I send is not > recognised. I tried to convert sambafax.debug.ps to ascii which gives > an error; > > # ps2ascii smabafax.debug.log debug.txt > GNU Gostscript 6.51: Unrecoverable error, exit code 1 > # > > Is that something to do with driver again or there is no Gostscript > installed? > > > Thanks again, > Shafeer. > > > ____________________ HylaFAX(tm) Users Mailing List > _______________________ > To subscribe/unsubscribe, click > http://lists.hylafax.org/cgi-bin/lsg2.cgi > On UNIX: mail -s unsubscribe hylafax-users-request@hylafax.org < > /dev/null > *To learn about commercial HylaFAX(tm) support, mail > sales@hylafax.org.* > > > > ____________________ HylaFAX(tm) Users Mailing List _______________________ To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi On UNIX: mail -s unsubscribe hylafax-users-request@hylafax.org < /dev/null *To learn about commercial HylaFAX(tm) support, mail sales@hylafax.org.* ____________________ HylaFAX(tm) Users Mailing List _______________________ To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi On UNIX: mail -s unsubscribe hylafax-users-request@hylafax.org < /dev/null *To learn about commercial HylaFAX(tm) support, mail sales@hylafax.org.*