Welcome to MorphOS-Storage, a webserver dedicated to MorphOS users. ©2016-2026 Meta-MorphOS.org
Description:A shell script to give shutdown and reboot options in a requester window which closes automatically if nothing is selected by jPV^RNO. Can be used for example in Ambient Panels.
Developer/Porter:jPV^RNO
Homepage:http://jpv.wmhost.com/morphos/
Paypal:
Upload Date:Jul 24 2016
Category:Scripts/Shell
Download:Shutdown.lha
Md5:236baa46a1a216b0a51c8870465ca86e
Size:4 KB
Downloads:604

Screenshot(s)
 
History
Last Comments
Add comment
07 Jun 2026
14:28
You need to add the path to the ShutDown command. ---> C:Shutdown I changed the script this way so that it works now : ; open requester RequestChoice >ENV:rcnum "SHUTDOWN" "Press enter to shutdown or wait 10s to cancel." "Shutdown" "Reboot" "Cancel" TYPE=1 TIMEOUT=10 ; if "Cancel" is pressed If $rcnum EQ 0 Quit Endif ; if "Shutdown" is pressed If $rcnum EQ 1 C:ShutDown Quit EndIf ; if "Reboot" is pressed If $rcnum EQ 2 C:Reboot Quit EndIf