I am relatively new to scripting at the moment and am struggling to get the following function to work. For some reason it does not recognise the arithmatic symbol when i select option1. Any help would be greatly appreciated.
Hey guys I'm new but trying to figure something out, I'm teaching myself the basic's of Shell Scripting, and decided a Calculator of sorts is as good a place as any to start, However what I want to do is after each case statement to return you to the Original Question "Select Add...." is there a command to do this?
I would guess its a form of flagging the start point and referencing it
Hi Ryan- thanks for the super quick response.I am kind of suspecting handler.sh isn't even getting run. With my script like so:button/lid)
case "$2" in
#echo -n mem >/sys/power/state
echo LID >> /etc/acpi/acpidebug
;;Nothing is written to acpidebug when I close the lid.