File: gsambadpdf

package info (click to toggle)
gsambad 0.1.4-2etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 5,228 kB
  • ctags: 644
  • sloc: ansic: 9,448; sh: 3,637; makefile: 218
file content (13 lines) | stat: -rwxr-xr-x 439 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

### SAMBA Postscript to PDF Printing by Magnus-swe #############
### Use "printing = bsd" in smb.conf for this printer ##########
### Install client printers as "HP Color Laserjet PS" or so ####
### Any postscript laserjet printer will do but select color ###

OUTDIR="/home/pdf-documents"
DATE=`date +%Y-%b-%d---%H.%M.%S`

/usr/bin/ps2pdf12 $1 $OUTDIR/$DATE.pdf
echo "$2 Created: $DATE.pdf" >> $OUTDIR/CreationLog.wri
rm -f $1