Duane writes:
>
> 3. use hpfopen or fopen to open a file on this device. If you get an
> error you can use fcheck to see if it was because the device doesn't
> exist. I don't know what happens if you fclose the file without writing
> anything. Worst case is you have an empty spool file.
Unfortunately, if the user entered "TAPE" (or some device class/ldev
that resolves to being a tape drive), the process is hung until
an operator does a REPLY.
I tried doing:
:listspf ; seleq [dev = foo]
to see if he could use LISTSPF in a sneaky manner, but listspf
fails to validate that the "device" is a valid device of any kind :(
Of course, if that bug were fixed (i.e., if the listspf "dev" was
defined to only allow valid printer classes)...then that would be
a workaround to the problem of identifying a valid printer class.
--
Stan Sieler [log in to unmask]http://www.allegro.com/sieler.html