printer file "name" - problem

Laura Brody laura at hvcomputer.com
Thu Mar 17 12:46:01 PST 2005


On Thu, 17 Mar 2005 14:39:10 -0500, Dennis Malen <dmalen at malen.com> wrote:

> Brian,
>
> I reviewed your comments and I find that my processing has everything you suggested except for :
>
> system noredraw "umask 0;>"<fn
>
> Is this line necessary and why?

	Yes.

Explanation of umask from Linux Magazine:
<http://64.233.161.104/search?q=cache:BMHScth6Pg0J:www.linux-magazine.com/issue/27/fstab.pdf+umask+0+description&hl=en>

The umask option in this entry has not been discussed previously. As Table 2
shows, the option sets inverse file privileges. What does that mean? Just
like the chmod command, umask works with octal numbers. The access bits are
calculated by subtracting the desired file privileges from seven, and assigning the
result as the umask.

The access privileges for the modes read, write and execute (octal 7) are thus
assigned by entering 0, r-x (octal 5) by entering 2, and rw- (octal 6) by typing a
1. As Windows 98 does not support access privileges for files, we can use
Linux access bits to impose an extra level of security.
In this case we are applying fairly lax security privileges, since umask=0
will allow any user to read, write and execute any file. You can type man
-P ?less +?/^[ ]*umask?? bash for additional information on using masked
file privileges.

> I still need the PUTENV, as I only want the heading to be printed once.

	No problem with this command.

> I am only executing that command once, unless it doesn't matter. I do know that PRINTER FILE (per Ken) must only be executed once. I'm not clear on whether PRINTER TYPE needs to be only once. If someone would clarify that, it would be appreciated.

	I don't know if multiple executions of PRINTER TYPE would mess
things up, but I would only execute it once.

> Once I get this clarified I will post the final results on what works. It is evident that this is not clear to everyone. This is what the list is all about.

	I think that it would be helpful to you if you knew
the filePro printer hierarchy.... (which can be found on page 83
of "Laura's Quick Reference Guide for filePro version 5.0, 2nd edition")

1) PRINTER command in processing (type and dest)

2) Command line flags
	-p  (dest)
	-PC (type)
	-PN (type and dest)
	-PQ (type and dest)
	-PT (dest)
	-PV (dest)

3) Output format options (type and dest) --- you are using this and
can override it with 1) or 2).

4) Environmental variables

5) Default printer as defined in Printer Maintenance or
PFPRINTER enviromental variable.

Defaults: (if none of the above)
	DOS: default PRN
	UNIX/Linux: default "lp -s"

-- 
Laura Brody, Publisher of the filePro Developer's Journal
+------------- Hudson Valley Computer Associates, Inc ----------+
| PO Box 859 120 Sixth Street    http://www.hvcomputer.com      |
| Verplanck, NY 10596-0859       Voice mail: (914) 739-5004     |
+------ PC repair locally, filePro programming globally --------+



More information about the Filepro-list mailing list