English Amiga Board


Go Back   English Amiga Board > abime.net - Hosted Projects > project.ClassicWB

 
 
Thread Tools
Old 26 August 2012, 11:00   #1
emuola
Registered Whdload user
 
emuola's Avatar
 
Join Date: Oct 2006
Location: Finland
Age: 48
Posts: 532
How to get an automatic reboot after exiting an app?

Trying to create a Startup-sequence that automatically start a certain app and then when the user exists that app the Amiga would automatically reboot.

How do I tell the Amiga to automatically reboot after exiting a certain app back to DOS?
emuola is offline  
Old 26 August 2012, 11:06   #2
Codetapper
2 contact me: email only!
 
Codetapper's Avatar
 
Join Date: May 2001
Location: Auckland / New Zealand
Posts: 3,187
If you have a reboot app, can't you just run that after running your other app to force the reset? To reset the Amiga is only a couple of lines of ASM code so there's bound to be an app on Aminet that does it.
Codetapper is offline  
Old 26 August 2012, 11:24   #3
emuola
Registered Whdload user
 
emuola's Avatar
 
Join Date: Oct 2006
Location: Finland
Age: 48
Posts: 532
Quote:
Originally Posted by Codetapper View Post
If you have a reboot app, can't you just run that after running your other app to force the reset? To reset the Amiga is only a couple of lines of ASM code so there's bound to be an app on Aminet that does it.
Yes that was, what I thought. But the problem is, how do I tell the AmigaDOS to execute the reset *after* the first app is exited byt the user (pressing Esc)?
emuola is offline  
Old 26 August 2012, 11:27   #4
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 7,002
Commands in startup-sequence (or scripts in general) are executed one after the other. Just put the reboot command after your app.

Code:
setpatch
app
reboot
thomas is offline  
Old 26 August 2012, 11:48   #5
emuola
Registered Whdload user
 
emuola's Avatar
 
Join Date: Oct 2006
Location: Finland
Age: 48
Posts: 532
Quote:
Originally Posted by thomas View Post
Commands in startup-sequence (or scripts in general) are executed one after the other. Just put the reboot command after your app.

Code:
setpatch
app
reboot
Omg This is a good example of a "good old straightforward kinda of" OS

*edit*

Unfortunately what happens is that the reboot happens right after the first app is started (the app never actually gets to open at all)...
emuola is offline  
Old 26 August 2012, 12:27   #6
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 7,002
Do you call the app with 'Run'? Run returns immediately. That's what it's made for. Don't use Run if you want to wait until the app returns. (Same is true for WBRun IIRC).

If you did't use Run, then the app detaches itself from the shell. In this case you are lost. The only way would be to regularly check for a resource the app creates, for example an ARexx port. If the resource disappears, the app might have ended.
thomas is offline  
Old 26 August 2012, 12:43   #7
emuola
Registered Whdload user
 
emuola's Avatar
 
Join Date: Oct 2006
Location: Finland
Age: 48
Posts: 532
Quote:
Originally Posted by thomas View Post
Do you call the app with 'Run'? Run returns immediately. That's what it's made for. Don't use Run if you want to wait until the app returns. (Same is true for WBRun IIRC).

If you did't use Run, then the app detaches itself from the shell. In this case you are lost. The only way would be to regularly check for a resource the app creates, for example an ARexx port. If the resource disappears, the app might have ended.
Thanks again thomas. That did the trick (removing run)
emuola is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows update automatic reboot bernd roesch support.WinUAE 4 12 July 2012 14:50
Suggestion when exiting WinUAE... Leo42 request.UAE Wishlist 4 09 October 2005 12:18
Strange Lines When Exiting Games MSC support.WinUAE 1 31 August 2004 01:53
REQ: Automatic resolution change ; automatic resolution detection Borg_Number_One request.UAE Wishlist 3 21 August 2004 14:16
Exiting build-in debugger? WintermuteX support.WinUAE 12 16 March 2004 23:19

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 14:15.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.07074 seconds with 15 queries