| simple script - selection options on checklist Hello everybody,
I need to write a simple script in xdialog.
You select on checklist one option and this script
call one command. I have at this moment:
#!/bin/sh
DIALOG=Xdialog
$DIALOG --backtitle "This is the \"my eraser\"" \
--checklist "Eraser" 0 0 0 \
"a" "Erase tmp in home directory" OFF \
"b" "Erase xmule files" ON \
"c" "Erase /tmp" ON\
What should I do, that after selection of option "a", system will do
"rm -fr /home/pawel/tmp/*".. after selection "b" - "rm -fr .xmule/tmp/*"
etc ...
Thanks for help,
Pawel |