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.