#!/bin/ksh # Script: sho_iconprops_anydesktop # # Where: in $FEDIR/scripts where $FEDIR=/apps/nns_com/fea # # Purpose: Shows icon properties (esp. script names) for the desktop # of any host ( i.e. any .desktop- ). # # Called by: feamain -> feautils.menu -> config.menu script # # Written by: B. Montandon 13Jan98 # Updated by: B. Montandon 3Feb98 Formatted Background file output for # readability # Updated by: B. Montandon 6Apr98 show links for .desktop dirs, with 'cut' # set -v # HOSTNAME=`hostname` . $FEDIR/scripts/clearnns . $FEDIR/scripts/set_localoutlist echo "${HIbold}\ ............................................................................ Show icon properties -- for any of your desktops ${HIdim} ( esp. FULL filenames associated with icons on any of your existing host-desktop's ) ${HIreset} This is handy for showing script names associated with an action icon on one of your desktops. " # ls -d $HOME/.desktop* ls -ld $HOME/.desktop* | cut -c55- echo " ............................................................................ Enter HOSTNAME (default = this host, `hostname` ) ('x' to exit) ==>${HIreset} \c" read DESKHOST if test "$DESKHOST" = "x" then continue # break fi if test "$DESKHOST" = "" then DESKHOST=`hostname` fi echo "\ ****************** `date` ************************** Icon Properties of an SGI desktop -- i.e. contents of file $HOME/.desktop-${DESKHOST}/ozPanelLayout-1.00/Background ........................................................................... " > $OUTLIST awk '{printf ("Line%3s) %-14s %-18s \n \t %-45s \n \t %-15s \n \t %-15s %-15s %-15s \n \t %-15s %-15s \n \n", NR, $1, $2, $3, $4, $5, $6, $7, $8, $9)}' \ $HOME/.desktop-${DESKHOST}/ozPanelLayout-1.00/Background >> $OUTLIST echo " ........................................................................... To see whether this host-desktop is linked to another -- check whether there is an arrow (->) in the following Output of ls -ld $HOME/.desktop-${DESKHOST} | cut -c1-12,17-30,55- " >> $OUTLIST ls -ld $HOME/.desktop-${DESKHOST} | cut -c1-12,17-30,55- >> $OUTLIST . $FEDIR/scripts/shofil $OUTLIST