Dialog gauge question
I already wrote a script using barcode, ps2pdf, pdftk and of course bash to create a pdf document for each record in a database file.
so basically the script goes [ short jest here ] for idnum in `cat database` do barcode -b $idnum -o $idnum.ps # barcode program takes value makes # ps file of value [scannable barcode] ps2pdf $idnum.ps $idnum.pdf # converts ps to pdf file pdftk template.pdf background $idnum.pdf cat output vendor_$idnum.pdf # the pdftk background takes a template and I merge my barcode pdf to # it so I can get a company logo, etc... done pdftk vendor*.pdf cat output master_vendor.pdf #make master pdf of # all database records rm -rf vendor*.pdf what I would like to do is show a dialog gauge after each record in database is converted to vendor_$idnum.pdf I am new at programming and got my gauge to work by saying something like last_record=`wc -l < database` and count=1 and made a loop function to progress thru but dumb me only gets dialog gauge to run its own loop and not progress thru the steps above I want to complete Can anyone help? Also point me to where I could learn more about dialog-seen examples but for me to learn I need alot of examples- more than one example program to sink into my brain... |
Quote:
It uses Yad (yet another dialog) YAD is a program that will display GTK+ dialogs (GUI'fied dialogs) Code:
#!/bin/bash When that's done, remove /tmp/$$ "5) Building a Gauge" http://mywiki.wooledge.org/BashFAQ/044 http://mywiki.wooledge.org/BashFAQ/040 should get you started, I hope. Good luck! subscribed with interest... JJ |
All times are GMT -5. The time now is 07:02 PM. |