* SUMMARY : print quene
@ 2000-11-23 9:25 HAtasoy
0 siblings, 0 replies; only message in thread
From: HAtasoy @ 2000-11-23 9:25 UTC (permalink / raw)
To: tru64-unix-managers
My original questin was=20
Hello gurus
How can i find the spooler directory of a printer with a shell script =
or
command .
Thans a lot
thanks to Alan Angulo [alan@esu.edu] who gave me correct perl script =
that I
want=20
#!/usr/bin/perl
$printer=3D$ARGV[0];
open(PRINTER,"</etc/printcap");
while($line=3D<PRINTER>){
if ($line =3D~ /^$printer[:\|]/) {
while($line=3D<PRINTER>){
chomp($line);
if ($line =3D~ /:sd/) {
print substr($line,(index($line,"sd:")+6),length($line)-7);
print("\n");
close PRINTER;
exit
}
}
}
close printer
}
also thanks=20
Dr. Tom Blinn, 603-884-0646 [tpb@doctor.zk3.dec.com]
ROBIN Jean-Marie (EURIWARE S.A.) [jmrobin@euriware.fr]
Tru64 User [tru64user@yahoo.com]
=09
=09
Hasan Atasoy
Sistem =DDleti=FEim M=FCd=FCrl=FC=F0=FC
E-mail : hatasoy@ifk.com.tr
Tel : +90 212 454 1362
Gsm : +90 532 284 3959
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2000-11-23 9:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-23 9:25 SUMMARY : print quene HAtasoy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox