Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pathconv(1f) [opensolaris man page]

pathconv(1F)							   FMLI Commands						      pathconv(1F)

NAME
pathconv - search FMLI criteria for filename SYNOPSIS
pathconv [-f] [-v alias] pathconv [-t] [-l] [-nnum] [-v string] DESCRIPTION
The pathconv function converts an alias to its pathname. By default, it takes the alias as a string from the standard input. OPTIONS
-f If -f is specified, the full path will be returned (this is the default). -t If -t is specified, pathconv will truncate a pathname specified in string in a format suitable for display as a frame title. This format is a shortened version of the full pathname, created by deleting components of the path from the middle of the string until it is under DISPLAYW -- 6 characters in length, and then inserting ellipses ( ... ) between the remaining pieces. Ellipses are also used to show truncation at the ends of the strings if necessary, unless the -l option is given. -l If -l is specified, < and > will be used instead of ellipses ( ... ) to indicate truncation at the ends of the string generated by the -t option. Using -l allows display of the longest possible string while still notifying users it has been truncated. -nnum If -n is specified, num is the maximum length of the string (in characters) generated by the -t option. The argument num can be any integer from 1 to 255. -valias |string If the -v option is used, then alias or string can be specified when pathconv is called. The argument alias must be an alias defined in the alias_file named when fmli was invoked. The argument string can only be used with the -t option and must be a pathname. EXAMPLES
Example 1 A sample that uses pathconv to construct the menu title. It searches for MYPATH in the alias_file named when fmli command. Here is a menu descriptor that uses pathconv to construct the menu title. It searches for MYPATH in the alias_file named when fmli was invoked: menu=`pathconv -v MYPATH/ls` . . . where there is a line in alias_file that defines MYPATH . For example, MYPATH=$HOME/bin:/usr/bin. Here is a menu descriptor that takes alias from the standard input. menu=`echo MYPATH/ls | pathconv` . . . ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
fmli(1), attributes(5) SunOS 5.11 5 Jul 1990 pathconv(1F)

Check Out this Related Man Page

fmli(1) 							   User Commands							   fmli(1)

NAME
fmli - invoke FMLI SYNOPSIS
fmli [-a alias_file] [-c command_file] [-i initialization_file] filename... DESCRIPTION
The fmli command invokes the Form and Menu Language Interpreter and opens the frame(s) specified by the filename argument. The filename argument is the pathname of the initial frame definition file(s), and must follow the naming convention Menu.xxx, Form.xxx, or Text.xxx for a menu, form or text frame respectively, where xxx is any string that conforms to UNIX system file naming conventions. The FMLI descrip- tor lifetime will be ignored for all frames opened by argument to fmli. These frames have a lifetime of immortal by default. OPTIONS
The following options are supported: -a alias_file If -a is specified, alias_file is the name of a file which contains lines of the form alias=pathname. Thereafter, $alias can be used in definition files to simplify references to objects or devices with lengthy pathnames, or to define a search path (similar to $PATH in the UNIX system shell). -c command_file If -c is specified, command_file is the name of a file in which default FMLI commands can be disabled, and new application-specific commands can be defined. The contents of command_file are reflected in the FMLI Command Menu. -i initialization_file If -i is specified, initialization_file is the name of a file in which the following characteristics of the appli- cation as a whole can be specified: - A transient introductory frame displaying product information - A banner, its position, and other elements of the banner line - Color attributes for all elements of the screen - Screen Labeled Keys (SLKs) and their layout on the screen. EXAMPLES
Example 1: Examples of the fmli command. To invoke fmli: example% fmli Menu.start where Menu.start is an example of filename named according to the file name conventions for menu definition files explained above. To invoke fmli and name an initialization file: example% fmli -i init.myapp Menu.start where init.myapp is an example of initialization_file. ENVIRONMENT VARIABLES
Variables LOADPFK Leaving this environment variable unset tells FMLI, for certain terminals like the AT&T 5620 and 630, to download its equivalent character sequences for using function keys into the terminal's programmable function keys, wiping out any set- tings the user may already have set in the function keys. Setting LOADPFK=NO in the environment will prevent this download- ing. COLUMNS Can be used to override the width of the logical screen defined for the terminal set in TERM. For terminals with a 132-col- umn mode, for example, invoking FMLI with the line COLUMNS=132 fmli frame-file will allow this wider screen width to be used. LINES Can be used to override the length of the logical screen defined for the terminal set in TERM. FILES
/usr/bin/fmli ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
vsig(1F), attributes(5) DIAGNOSTICS
If filename is not supplied to the fmli command, fmli returns the message: Initial object must be specified. If filename does not exist or is not readable, fmli returns an error message and exits. The example command line above returns the follow- ing message and exits: Can't open object "Menu.start" If filename exists, but does not start with one of the three correct object names (Menu., Form., or Text.) or if it is named correctly but does not contain the proper data, fmli starts to build the screen by putting out the screen labels for function keys, after which it flashes the message: I do not recognize that kind of object and then exits. SunOS 5.10 14 Sep 1992 fmli(1)
Man Page