* KSH Script
@ 1999-12-14 19:30 Gary Munroe
0 siblings, 0 replies; only message in thread
From: Gary Munroe @ 1999-12-14 19:30 UTC (permalink / raw)
To: tru64-unix-managers
I'm trying to do a little KSH script that will give a user a menu that
they can list printers on the system, check printer status, and send
printing. I have come up with the following so far to save the printer
names in an array so that the user just selects printer by number:
for foo in $(/usr/sbin/lpc status|grep ":");do
let ctr+=1
prtrs[ctr]=${foo%:lp*}
done
I am still getting the colon (:) at the end of the printer name which I
need to get rid of to use in the printer commands. Does anyone
have any suggestions on getting rid of it (or better way of doing it?)
Thanks.
___________________________________________________________________
| Gary Munroe |
|------------------------------------------------------------------|
| I.T.S., Information Services Group Work: gmunroe@flemingc.on.ca |
| Sir Sandford Fleming College Home: izzi@calweb.com |
| (705) 749-5523 x1409 |
|__________________________________________________________________|
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1999-12-14 19:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-12-14 19:30 KSH Script Gary Munroe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox