|
|
DataMuseum.dkPresents historical artifacts from the history of: RC9000 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about RC9000 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - downloadIndex: @ F T
Length: 1926 (0x786)
Types: TextFile
Notes: @(#)Form.remove 13.2 (RC International) 91/08/23
Names: »Form.remove«
└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
└─⟦bbf173f5c⟧ »0004«
└─⟦this⟧ »./usr/sadm/sysadm/add-ons/lp/printers/classes/Form.remove«
# @(#)Form.remove 13.2 (RC International) 91/08/23 form='Remove Classes' help=OPEN TEXT $INTFBASE/Text.itemhelp $LININFO init=`indicator -w; set -l name_2="/tmp/lp.n2$VPID"; set -l error="/tmp/lp.error$VPID"` framemsg="Enter classes to be removed then press [SAVE]" done=`message -w "Removing class(es) $F1"; if /usr/bin/lpstat -r | grep not > /dev/null; then message "The printer scheduler is not running."; else message "Stopping the printer scheduler, please wait ..."; /usr/lib/lpshut; message "Line printer scheduler stopped."; fi; if [ $F1 = "all" ]; then lpdata -c | tr "\012" " " | set -l list; else echo "$F1" | tr -s "," " " | set -l list; fi; shell " for p in $list do /usr/lib/lpadmin -x\$p 2>>$error >/dev/null; done "; if [ -s $error ]; then echo "OPEN TEXT /usr/sadm/sysadm/add-ons/lp/printers/classes/Text.error $error "; else message -w "Class(es) $F1 removed. Starting the scheduler, please wait ..."; rm -f /usr/spool/lp/SCHEDLOCK; /usr/lib/lpsched; message "Class(es) $F1 removed."; fi; `close close=`rm -f $name_2 $error; unset -l name_2 -l $error -l list;` #F1 name='Remove Classes:' lininfo="remove:F1" nrow=1 ncol=1 frow=1 fcol=17 rows=1 columns=30 value= scroll=true rmenu=OPEN MENU $OBJ_DIR/Menu.class.ch fieldmsg="Enter classes to be removed then press [SAVE]" choicemsg="MARK choices then press [ENTER]" valid=`indicator -w; unset -l bad_one; lpdata -c > $name_2; if [ -z "$F1" ]; then set -l no_value=true -l name_valid=false; else echo "all" >> $name_2; set -l no_value=false -l name_valid=true; fi; echo "$F1" | tr " ," "[\012*]" | regex -e '^(.*)$0$' '`fmlgrep "^$m0$" $name_2 || set -l bad_one="$m0" -l name_valid=false`' > /dev/null`$name_valid invalidmsg=`if [ "$no_value" = "true" ]; then echo "You must enter a value for this field."; else echo "$bad_one invalid class - press [CHOICES] for selection"; fi`