chore: add bin scripts

This commit is contained in:
JesusPerez 2021-10-01 20:27:13 +01:00
parent ed913cfac8
commit a1231503df
3 changed files with 29 additions and 0 deletions

1
bin/prnetscape.cmd Normal file
View File

@ -0,0 +1 @@
C:/ARCHIV~1/Netscape/NAVIGA~1/Program/netscape.exe /print("%1")

15
bin/rc.ksh Normal file
View File

@ -0,0 +1,15 @@
#!/bin/ksh
#
# ./netscape.exe /print$name
SpoolPath="c:/tmprpts/spool"
SpoolCtrl="c:/tmprpts/ctrl.spl"
date > $SpoolCtrl
echo "Borrando Spooler ........... " >> $SpoolCtrl
for nomLP in `ls $SpoolPath`
do
echo "Cola de $nomLP ..." >>$SpoolCtrl
rm $SpoolPath/$nomLP/* 2>>$SpoolCtrl
echo "0" >$SpoolPath/$nomLP/seq
done
echo "Fin del Borrando del Spooler" >> $SpoolCtrl

13
bin/scanhtml.ksh Normal file
View File

@ -0,0 +1,13 @@
#!/bin/ksh
#
# ./netscape.exe /print$name
SpoolPath="c:/tmprpts/spool"
NETSCAPE="prnetscape.cmd"
for nomLP in `ls $SpoolPath`
do
for html in `ls $SpoolPath/$nomLP/*.html`
do
$NETSCAPE "file://"$html
rm $html
done
done