Greg,
the awk command gives a broken pipe error,
eg. from /var/spool/lpd/lp1/log
2000-02-25-11:33:47 penguin (Worker - Print) lp1: write error after
32768
bytes - Broken pipe 2000-02-25-11:40:18 penguin (Worker - Print)
lp1: write
error after 32768 bytes - Broken pipe
the first time i ran it complained about couldnt write /tmp/sedawk,
so i made an empty file and gave rw perms to everyone. but i still get the
above error.
the script, from previous message,
#!/bin/bash
#define variables used here
source /etc/sysconfig/printers/lp1
# take stdin ( which should be plotter file ), strip of headers
# and write to file
awk 'BEGIN{i=0;}{if ($1 ~ /^BEGMF/) i=1; if ($1 ~ /^ENDMF/) i=0; if
(i==0) print}' /tmp/sedawk | sed 's/^ENDMF;//g' > /tmp/temp.plt
# run the svutil prog with some commands "ldoc" loads file "plot",
rips and
# prints on differenet printer
# if i run this command from the prompt it works
#rem remarked for diagnostic purpose as error happens above
#/usr/bin_linux/svutil -c"ldoc /tmp/temp.plt ;plot"
# exit script with 0 so spooler dosn't complain.
exit 0
regards
John Rogers
EMAIL [EMAIL PROTECTED]
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs