Hi Folks,
I have a shell script on Solaris 9 like so:
... the output looks like:
request id is lp_CDESINV3-36059 (1 file(s))
request id is lp_CDESINV3-36060 (1 file(s))
request id is lp_CDESINV3-36061 (1 file(s))
The problem is nothing prints! ... I found if I comment out the rm command, the jobs come out fine.
Is there some sort of lag or delay between the spooler loading up the data into the print request ?
How can I get around this ? I dont want to have sleep timers holding the PID for too long if there is a better solution.
I have a shell script on Solaris 9 like so:
Code:
/usr/sfw/bin/pdf2ps ${OUTPUT} /tmp/${REPORTFILE}-${PROCDATE}.ps
#-- Send postscript file to printer
lp -d $PRINTER /tmp/${REPORTFILE}-${PROCDATE}.ps
lp -d $PRINTER -o itray=tray1 /tmp/${REPORTFILE}-${PROCDATE}.ps
lp -d $PRINTER -o itray=tray3 /tmp/${REPORTFILE}-${PROCDATE}.ps
rm -Rf /tmp/${REPORTFILE}-${PROCDATE}.ps
request id is lp_CDESINV3-36059 (1 file(s))
request id is lp_CDESINV3-36060 (1 file(s))
request id is lp_CDESINV3-36061 (1 file(s))
The problem is nothing prints! ... I found if I comment out the rm command, the jobs come out fine.
Is there some sort of lag or delay between the spooler loading up the data into the print request ?
How can I get around this ? I dont want to have sleep timers holding the PID for too long if there is a better solution.