Sponsored Content
Top Forums Shell Programming and Scripting Tip: template for a safe and portable script Post 303032528 by MadeInGermany on Tuesday 19th of March 2019 04:22:58 PM
Old 03-19-2019
Regarding the du and df:
I have seen an old Unix man page that tells to look up the block size in the /usr/include/**.h files.
Not very user-friendly. In SysV it has always been 512 bytes. I think they wanted to have a small buffer in the kernel driver (and physical sector size was much below 512 bytes at that time).
du -k and df -k seem to be widespread in Unix and are allowed(ignored) in Linux.
But in Solaris, df -k not only changes the values to kilobyte, it also changes the (really bad) SysV-style output to the BSD-style (that BSD Unix and Linux always use).
Being Posix-compliant, e.g. by using my template, df -kP might be quite portable (in Linux even avoids a brain-damaged "split long lines in two even if destination is not a terminal").
 
lmfsetup(8)						      System Manager's Manual						       lmfsetup(8)

Name
       lmfsetup - License Management Facility PAK registration script

Syntax
       /etc/lmfsetup [ template ]

Description
       The  script allows you to register data supplied by a Product Authorization Key (PAK).  The script prompts you for the data associated with
       each of the fields on a PAK.  When all the data has been entered, the License Management Facility (LMF) ensures there are  entries  against
       all  the mandatory fields, and that the Checksum validates all the license data.  If the data has been entered correctly, the PAK is regis-
       tered in the License Database.  If the data has been entered incorrectly, the appropriate error message is displayed and you are given  the
       opportunity to re-enter the data.

       The template option allows you to register license data from templates in A template containing a partially complete PAK is created by some
       products as part of their installation process.	The script only prompts you for data on the fields that are empty in the template.  If the
       script cannot find the specified template in it searches the current directory.

       The  script  is	provided as an alternative to the command.  This displays a template, which includes the fields on the PAK, and invokes an
       editor so that you can add the license data to the appropriate field.  The command also allows errors to be corrected without having to re-
       enter all the data.

See Also
       lmf(8)
       Guide to Software Licensing

																       lmfsetup(8)
All times are GMT -4. The time now is 03:11 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy