On Sat, 30 Nov 2002, Matej Cepl wrote: > Robin Turner wrote: > > >What is wrong with this? > > > > > > #!/bin/sh > > > TMPF1=`mktemp /tmp/psbooklet1XXXXXX` > > > TMPF2=`mktemp /tmp/psbooklet2XXXXXX` > > > psbook $1 $TMPF1 > > > psnup -2 $TMPF1 $TMPF2 > > > [ $? == 0 ] && { mv $TMPF2 $1 ; rm $TMPF1 } > > > > > >Matej > > > > > Got this message: > > > > *] [1] [*] [*] Wrote 4 pages, 26691 bytes > > [1] [2] Wrote 2 pages, 29669 bytes > > /home/nalan/Documents/psbooklet: line 7: syntax error: unexpected end of > > file > > > > Running the commands manually is fine for psbook, but psnup for some > > reason won't put two virtual pages on one physical page. > > Sorry it should be > psnup -2up $TMPF1 $TMPF2 > I tried the script (it's attached) and made the change, but I still get the error:
/home/chr/Private/bin/bookletScript.sh: line 7: syntax error: unexpected end of file What's wrong? /Christian -- Christian Ridderström, +46-8-790 91 37 http://www.md.kth.se/~chr Mechatronics lab, Dept. of Machine Design http://www.md.kth.se
#!/bin/sh TMPF1=`mktemp /tmp/psbooklet1XXXXXX` TMPF2=`mktemp /tmp/psbooklet2XXXXXX` psbook $1 $TMPF1 psnup -2up $TMPF1 $TMPF2 [ $? == 0 ] && { mv $TMPF2 $1 ; rm $TMPF1 }