Thurman, Thanks for the info. Is |PRN| a cache' specific designator? It seems that I have read somewhere that |xxx| is expanded into something else in Fileman.
I don't think I have seen this kind of printer designation in linux. Thanks for the input. Kevin --- Thurman Pedigo <[EMAIL PROTECTED]> wrote: > I am on Cache, however it seems device design should > be same. Below is a > screen capture - including $I ...tx/t > > INPUT TO WHAT FILE: DEVICE// > EDIT WHICH FIELD: ALL// > > Select DEVICE NAME: pl6 HPLASER LASER PL6 > |PRN|\\W2K3\HP LaserJet > 4100 P > CL 6 CACHE > NAME: HPLASER// > LOCATION OF TERMINAL: LASER PL6// > Select MNEMONIC: PL6// > LOCAL SYNONYM: > $I: |PRN|\\W2K3\HP LaserJet 4100 PCL 6// > VOLUME SET(CPU): CACHE// > SIGN-ON/SYSTEM DEVICE: NO// > TYPE: TERMINAL// > SUBTYPE: P-HPLASER-P10// > ASK DEVICE: > ASK PARAMETERS: > ASK HOST FILE: > ASK HFS I/O OPERATION: > QUEUING: > OUT-OF-SERVICE DATE: > > > -----Original Message----- > > From: [EMAIL PROTECTED] > [mailto:hardhats- > > [EMAIL PROTECTED] On Behalf Of > Kevin Toppenberg > > Sent: Sunday, January 09, 2005 9:21 AM > > To: [email protected] > > Subject: [Hardhats-members] Setting up Printers > (was overview...) > > > > Hey all, > > > > I'm back trying to get printers working. Here is > the > > plan that seems best: > > > > 1. generate a unique filename for each print job > > 1. write the file to disk (host-file-system) > > 2. execute a ZSYSTEM lpr with the filename > > 3. at some later point, delete the print job file. > > > > Below are helpful posts that have helped me, but I > > don't fully understand. > > > > My question is about the variable "IO", as it is > used > > in the CLOSE EXECUTE as per below. When I do a > dump > > of IO on my system, this is what I see: > > > > zwr IO > > IO="/dev/pts/4" > > IO(0)="/dev/pts/4" > > IO(1,"/dev/pts/4")="" > > IO("HOME")="38^/dev/pts/4" > > IO("ZIO")="/dev/pts/4" > > > > -Here is the suggested items for TERMINAL TYPE > > > > TERMINAL TYPE FILE: > > > > P-SLAVE HP 80 GTM/LINUX > > FORM FEED: # > > RIGHT MARGIN: 80 > > PAGE LENGTH: 60 > > BACK SPACE: $C(8) > > CLOSE EXECUTE: U IO K IO(1,IO) C IO ZSYSTEM "lpr > r"_IO > > > > > > I don't understand what the CLOSE EXECUTE code is > > doing. I'll break it appart to show my thinking > > > > 1. USE IO -- IO on my system is "/dev/pts/4". But > > there was a suggestion somewhere to use > > UNIQUE^%ZISUTL() to create a unique IO name. If I > > were to change IO to "printjob123.dat", what other > > effect will this have? > > > > 2. KILL IO(1,IO) -- why is this being killed? > > > > 3. CLOSE IO -- should stop the USE IO command. > But I > > don't see that anything useful was done between > the > > USE and CLOSE commands. > > > > 4. ZSYSTEM -- This is where the Linux OS is told > to > > actually print out the file "IO" > > > > > > Also, in Chris's post below he set $I for the > DEVICE > > file entry to $HOME/slave.dat. But Fil added a > > suggestion to add PRE-OPEN EXECUTE code to create > a > > unique filename. Would I then have $I to be > this:? > > $HOME/IO > > It seems that would just send to file "IO" rather > than > > to the VALUE of IO (i.e. "PrintJob123") > > > > I am also not sure as the the order of execution. > > There is PRE-OPEN EXECUTE and POST-CLOSE EXECUTE > in > > the DEVICE file entry, and also in the TERMINAL > TYPE > > file. > > > > Anyway, as you can tell, I'm floundering a bit. > Can > > anyone help? Thanks > > > > Kevin > > > > P.S. In the DEVICE file, I see field for PRINT > SERVER > > NAME OR ADDRESS (#65), and TELNET PORT (#66). The > > help for these fields hint that they are for using > lpd > > protocol to print to a print server. Does anyone > know > > about this? I might be a more straight-forward > way of > > printing vs. the method outlined above. > > > > Thanks again > > Kevin > > > > --- "Beza, Fil" <[EMAIL PROTECTED]> wrote: > > > > > In the DEVICE File, put the code in PRE OPEN > EXECUTE > > > to change the IO > > > variable to the unique name. > > > > > > _____ > > > > > > From: > [EMAIL PROTECTED] > > > > > > [mailto:[EMAIL PROTECTED] > > > On Behalf Of Beza, > > > Fil > > > Sent: Saturday, November 13, 2004 8:22 AM > > > To: [email protected] > > > Subject: RE: [Hardhats-members] Printers... An > > > overview please. > > > > > > > > > Hmmm... we don't have that problem in VMS > because > > > each file gets a > > > different version number. > > > > > > Take a look at %ZISUTL. It has an entry point > to > > > generate unique names > > > > > > UNIQUE(ZISNA) ;Build a unque number to add to a > > > device name > > > ;If passed a name put the number before > the > > > last dot. > > > N %,%1 > > > S %=$H,%=$H_"-"_$J,%=$$CRC32^XLFCRC(%) > > > I '$L($G(ZISNA)) Q % > > > S %1=$L(ZISNA,"."),%="_"_% > > > S:%1=1 %=ZISNA_% S:%1>1 > > > %=$P(ZISNA,".",1,%1-1)_%_"."_$P(ZISNA,".",%1) > > > Q % > > > > > > > > > _____ > > > > > > From: > [EMAIL PROTECTED] > > > > > > [mailto:[EMAIL PROTECTED] > > > On Behalf Of Kevin > > > Toppenberg > > > Sent: Saturday, November 13, 2004 5:55 AM > > > To: [email protected] > > > Subject: RE: [Hardhats-members] Printers... An > > > overview please. > > > > > > > > > Thanks for your feedback Fil. > > > > > > It seems to me that one would need to send the > === message truncated === __________________________________ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ Hardhats-members mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/hardhats-members
