#!/bin/ksh ## ## Script: sgiscrn_del_scrarea_lines_proc ## in $FEDIR/scripts ## where FEDIR=/apps/nns_com/fea ########################################################################## ## ## Purpose: To delete the two (yellow) lines, that indicate a 640x480 area ## in the lower left of the I-DEAS graphics area, from the screen ## -- by killing the two ipaste processes that created them. ## ## Uses the SGI 'ps', 'grep', 'awk', 'xargs', and 'kill' programs ## that come with IRIX. ## ########################################################################## ## ## Called by: 1) sgiscrn2hpjetPlotAB ## 2) sgiscrn2hpjetPlotBig ## 3) sgiscrn2postscrPlotAB ## 4) sgiscrn2postscrPlotBig ## 5) sgiscrn2rasterfil, which is called by ## sgiscrn2gif, sgiscrn2tiff, sgiscrn2pcx, sgiscrn2bmp, etc. ## ########################################################################## ## Call format: . $FEDIR/scripts/sgiscrn_del_scrarea_lines_proc ## (note the leading dot) ## ## See the internals of the above calling scripts ## for examples of the calling format. ## ########################################################################## ## Input-Output: ## None. ########################################################################## ## Development/Maintenance Notes: ## ## For some history of the development of the options ## within this script, see this section of the scripts ## 'sgiscrn2hpjetPlotAB' & 'sgiscrn2hpjetPlotBig'. ## ## Written by: Blaise Montandon E40/C61 29Sep98 based on 'kill ipaste' section ## of first generation sgiscrn2rasterfil. ## Updated by: Blaise Montandon E40/C61 1Oct98 added "$SCRAREA" = "LowLeft" ## condition for possible ## de-comment in future ########################################################################## ########################################################################## ####### 'Kill' the lines on the screen that indicate ################## ####### the Lower-Left area of IDEASgfx area. ################## ########################################################################## # # if test "$SCRAREA" = "" # if test \( "$SCRAREA" = "" -o "$SCRAREA" = "LowLeft" \) # then ps -ef | grep ipaste | grep -v grep | awk '{ print $2 }' | \ xargs kill -9 {} 2> /dev/null # fi