[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: Printing from the command line



John Luciani wrote:
George,

The script below (which I name gschem-print) prints schematic
files from the command line. Replace the string GEDA_SCHEME_DIR
with the name of your gEDA scheme directory.

#!/bin/bash
for name in $*
do
  base="${name%.*}"
  gschem -o$base.ps -sGEDA_SCHEME_DIR/gschem-print.scm $base.sch
  lpr -P$PRINTER $base.ps
done


I'd add a "-p" to that gscme command line. That will cause the windows to autoplace themselves so the script can run without you manually placing windows. This should override any sort of windowmanager policy on window placement.


-Dan