


uitaction(1)                                         uitaction(1)


NNAAMMEE
       uitaction  -  UNIX  Interactive  Tools version 4.3.1 - per
       file type action script

SSYYNNTTAAXX
       _u_i_t_a_c_t_i_o_n _d_i_r_e_c_t_o_r_y_, _f_i_l_e
       _._u_i_t_a_c_t_i_o_n _d_i_r_e_c_t_o_r_y_, _f_i_l_e


DDEESSCCRRIIPPTTIIOONN
       _u_i_t_a_c_t_i_o_n is a script that executes a different action for
       each  file type specified. It is called by the _u_i_t program
       when pressing FF22 or ^^KKzz (see the ..uuiittrrcc..TTEERRMM configuration
       files  in the _u_i_t manual). The first parameter is the cur-
       rent directory name and the second one is the file name to
       be  matched  against the default patterns. The matching is
       done using the _u_i_t_m_a_t_c_h utility.  If you press FF22  or  ^^KKzz
       on a **..cc file, _u_i_t will compile it, if you press FF22 or ^^KKzz
       on a **..ttaarr..ggzz file, _u_i_t will list  the  tar  archive  con-
       tents, if you press the same keys on a **..ggzz file, _u_i_t will
       display its uncompressed contents on the screen,  etc  ...
       By default _u_i_t_a_c_t_i_o_n checks for the following patterns:

       "*.cc"  "*.c"  "*.l"  "*.y"  "*.h" "*.s" "*.S" "*.o" "*.a"
       "*.sa" "Makefile" "makefile" "*.tar.gz" "*.tgz"  "*.tar.z"
       "*.tar.Z"  "*.taz"  "*.tar"  "*.gz"  "*.z"  "*.Z"  "*.doc"
       "*.txt" "*.gif" "*.jpg" "*.tif" "*.bmp"

       and acts as appropriate. If  no   pattern  is  found,  the
       file is displayed using more. Feel free to change this. If
       you want to find out what the default action for each file
       type  is  (or  if you want to modify it), just read/modify
       the _u_i_t_a_c_t_i_o_n script.

       If you press FF22 or ^^KKzz on a **..ggiiff file or **..jjppgg  file  and
       you  have  the  _z_g_v utility installed, you will be able to
       see it. If you want to change the gif/jpeg viewer, all you
       need  to do is to change its name in the _u_i_t_a_c_t_i_o_n script.
       I don't know a **..bbmmpp or **..ttiiff viewer. Feel free to add one
       in the _u_i_t_a_c_t_i_o_n script.

       The script can be easy enhanced. Just read it.

       The  _._u_i_t_a_c_t_i_o_n script is a local version of the _u_i_t_a_c_t_i_o_n
       script. When started, _u_i_t_a_c_t_i_o_n tries to search  a  script
       called  ..uuiittaaccttiioonn  in  the  current  directory and, if it
       finds it, it starts it. If _._u_i_t_a_c_t_i_o_n's exit code is  0  (
       _._u_i_t_a_c_t_i_o_n  couldn't  find  a matching pattern), _u_i_t_a_c_t_i_o_n
       starts its own case statement trying to match the  current
       file  name (the second parameter) against its default pat-
       terns.

       The _._u_i_t_a_c_t_i_o_n script *must* be executable. An example  of
       _._u_i_t_a_c_t_i_o_n  can  be  fount  in //uussrr//llooccaall//lliibb.  You should



Release 4.3.1              August 1994                          1





uitaction(1)                                         uitaction(1)


       copy the example in the current directory and then  modify
       it.



BBUUGGSS
       None so far. :-)

       Please  send  bug  reports  to _t_u_d_o_r_@_u_l_i_s_e_._c_s_._p_u_b_._r_o or to
       _t_u_d_o_r_@_h_a_b_a_r_n_a_m_._c_s_._p_u_b_._r_o.


SSEEEE AALLSSOO
       uit(1)   uitps(1)   uitview(1)    uitmount(1)    uitcmp(1)
       uitkeys(1) uitmatch(1)


FFIILLEESS
       /usr/local/bin/uitaction
       /usr/local/lib/.uitaction
       /usr/local/man/man1/uitaction.1


AAUUTTHHOORRSS
       _T_u_d_o_r _H_u_l_u_b_e_i
       - tudor@ulise.cs.pub.ro, tudor@habarnam.cs.pub.ro
       _A_n_d_r_e_i _P_i_t_i_s
       - pink@ulise.cs.pub.ro, pink@habarnam.cs.pub.ro
       PPoolliitteecchhnniicc UUnniivveerrssiittyy ooff BBuucchhaarreesstt
       RRoommaanniiaa



























Release 4.3.1              August 1994                          2


