Hylafax Mailing List Archives

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

[hylafax-users] help needed in faxrcvd script



Scenario:

I have installed Hylafax on my slackware linux file-server. I want that all 
faxes can get automatically printed to the attached Brother Fax machine. 
Note that this machine also serves as the samba print server & I'm using all 
the jobs to use the samba print queue. Each fax should also be converted to 
PDF & saved in shared folder "/home/public/FAX", using date & time for the 
file name. To do this can I add the following lines in "faxrcvd" file??????

Proposed Solution:

FILENAME=`echo $FILE | sed -e 's/\.tif//'`
/usr/bin/tiff2ps -a $FILE | lpr -P BrotherFax -o natural-scaling=95 -o 
media=letter
/usr/bin/tiff2ps -a -O $SPOOL/$FILENAME.ps $SPOOL/$FILE
/usr/bin/ps2pdf $SPOOL/$FILENAME.ps $SPOOL/$FILENAME.pdf
mv $SPOOL/$FILENAME.pdf /home/public/FAX/

Now, here I'm stuck. How can I use the date & time for the filename??

Kindly guide me to do the above mentioned tasks. Your instance help is 
highly appreciated.

Regards,

Rizwan.

_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 
http://join.msn.com/?page=features/junkmail


____________________ 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.*



Home
Report any problems to webmaster@hylafax.org

HylaFAX is a trademark of Silicon Graphics Corporation.
Internet connectivity for hylafax.org is provided by:
VirtuALL Private Host Services