NAME
fileaction - GUI to run action from a list
SYNOPSIS
fileaction [-pf pffile] filename
SUPPORT
Contributed code: NO BRTT support.
THIS PIECE OF SOFTWARE WAS CONTRIBUTED BY THE ANTELOPE USER COMMUNITY. BRTT DISCLAIMS ALL OWNERSHIP, LIABILITY, AND SUPPORT FOR THIS PIECE OF SOFTWARE.
FOR HELP WITH THIS PIECE OF SOFTWARE, PLEASE CONTACT THE CONTRIBUTING AUTHOR.
DESCRIPTION
Fileaction allows one to choose a command for a file specified on the commandline, e.g selection of a printer.
The GUI offers a list of actions specified in the parameter file.
The Escape-Key closes the window, while the Return-key executes the selected action. If no action is selected, both the Return-key and the OK-button are disabled.
OPTIONS
-
-pf pffile
parameter file name
-
filename
Name of file. This argument is required
PARAMETER FILE
The following is a sample parameter file.
question What shall I do with this file?
#$filename -> filename
#$basename -> basename
actions &Arr{
default_printer lp -o duplex -o A4 $filename
mail_horn rtmail -a $filename -s $basename horn < /dev/null
hp8150 lp -d hp8150 -o A4 $filename
}
#default action is listed on top, all others in arbitrary order
default_action default_printer
BUGS AND CAVEATS
The screen is not very nice.
SEE ALSO
dbplotpicks(1), run_dbplotpicks(1)
AUTHOR
Nikolaus Horn, 2005
ZAMG / Vienna, Nikolaus.Horn@zamg.ac.at
Antelope User Group Contributed Software