summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2002-08-19 01:00:04 +0000
committerJonas Smedegaard <dr@jones.dk>2002-08-19 01:00:04 +0000
commitbed12e9a6ffb01270ade5146a744e6b6a0a3a496 (patch)
treee0e589d84a0a8b2b42bccf1d8940d416cae8bf2c
parent2687e9a7b27ea09f16a93588e6baac0f28c515db (diff)
pdfdistiller: Add logline about sending the pdf file.
-rwxr-xr-xpdfdistiller2
1 files changed, 2 insertions, 0 deletions
diff --git a/pdfdistiller b/pdfdistiller
index 6a6497d..9a3298f 100755
--- a/pdfdistiller
+++ b/pdfdistiller
@@ -86,9 +86,11 @@ chmod a+r $OUTPUTFILENAME
if [ "$user" != "" ]; then
if [ -x /usr/bin/mime-construct ]; then
+ echo "Send as pdf to $user using mime-construct" >> $LOGFILE
/usr/bin/mime-construct --to "$user" --subject "PDF print" --type application/pdf --attachment `basename $OUTPUTFILENAME` --file $OUTPUTFILENAME \
&& rm $OUTPUTFILENAME
elif [ -x /usr/bin/mimeit ]; then
+ echo "Send as pdf to $user using mimeit" >> $LOGFILE
cat $OUTPUTFILENAME | /usr/bin/mimeit application/pdf $user "PDF print" \
&& rm $OUTPUTFILENAME
else