*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> filetype (1)              
Title
Content
Arch
Section
 

Contents


FILETYPE(1)			Printing Tools			   FILETYPE(1)


NAME    [Toc]    [Back]

     filetype, fileopen, filealtopen, wstype - determine filetype of specified
     file or files

SYNOPSIS    [Toc]    [Back]

     filetype [-v]  [ -d filetypeDataBasePath ]	[-o | -a ] file...

DESCRIPTION    [Toc]    [Back]

     filetype is a utility used	to determine the IRIX Interactive Desktop
     (IID(1G)) file type of a file or set of files.  filetype uses the IRIX
     Interactive Desktop file typing database to look up file typing rules and
     apply them	to the files listed, then prints the file type for each	file
     whose type	was requested.	The conversion rules are located in compiled
     .otr files	in /usr/lib/filetype. The older	ftr(1) database	format,	.ctr
     files are not supported anymore.  The source .ftr files can be found in
     the local,	install, system, and default subdirectories under
     /usr/lib/filetype.

     If	no file	type can be determined for a particular	file, the string
     "Unknown" is returned.  If	a file type can	be determined, filetype	will
     return a string representing the name of the file and its IRIX
     Interactive Desktop type name.

USAGE    [Toc]    [Back]

     The -v option should be used when detailed	file typing information	is
     desired.  This option prints a copy of the	full file-type rule when a
     file is successfully typed.

     -d	filetypeDataBasePath is	an alternate path to the compiled file-typing
     rules.  The default path is /usr/lib/filetype/desktop.otr.

     The -o and	-a options execute the FTR "Open" and "Alt-Open" rules for the
     selected files.  The first	filename on the	command	line is	put into the
     $LEADER variable, the rest	into $REST.  The rest of the IRIX Interactive
     Desktop environment variables are set appropriately accordingly.  (See
     man ftr for more information on those variables.)	Invoking fileopen is
     equivalent	to passing the -o switch to filetype. Invoking filealtopen is
     equivalent	to passing the -a switch to filetype.

     The -v option should be used when detailed	file typing information	is
     desired.  This option prints a copy of the	full file-type rule when a
     file is successfully typed.

     file(s) is	one or more file names,	separated by spaces.

     A typical call from the command line and its resulting output might look
     like the following:

	  $ filetype /etc/passwd /unix /dev/kmem

	     /etc/passwd AsciiTextFile




									Page 1






FILETYPE(1)			Printing Tools			   FILETYPE(1)



	 /unix GenericExecutable

	  /dev/kmem CharSpecial

TYPE ORDERING    [Toc]    [Back]

     The ordering of files on filetype's command line determines the ordering
     of	files and types	reported.

FILES    [Toc]    [Back]

     /usr/lib/filetype/local/*.ftr
     /usr/lib/filetype/install/*.ftr
     /usr/lib/filetype/system/*.ftr
     /usr/lib/filetype/default/*.ftr
     /usr/lib/filetype/desktop.otr

SEE ALSO    [Toc]    [Back]

      
      
     IRIS Impressario Programming Guide	, IRIX Interactive Desktop Integration
     Guide , routeprint(1), ftr(1).


									PPPPaaaaggggeeee 2222
[ Back ]
 Similar pages
Name OS Title
routeprint IRIX convert file to printer or to specified filetype
filetype IRIX K-AShare's filetype specification file
rqsread IRIX reads the information out of an ELF file that is needed to determine if the file needs to be requickstarted
isastream Tru64 Determine if a file descriptor refers to a STREAMS file
magic2mime Linux determine file type
file IRIX determine file type
file Linux determine file type
file OpenBSD determine file type
elf_kind IRIX determine file type
file FreeBSD determine file type
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service