17 August 2018, 18:18 | #1 |
Registered User
Join Date: Feb 2018
Location: Mayflower, AR USA
Posts: 15
|
Reboot system from CLI
Is there a way to restart a machine from the command line? I run a BBS with a shell and would like to occasionally restart it from the command line to free up memory.
Thanks. |
17 August 2018, 18:42 | #2 |
Registered User
Join Date: Oct 2016
Location: Norway
Posts: 170
|
http://aminet.net/package/util/boot/SafeReset
There are many other tools like it (http://aminet.net/search?query=reboot). |
17 August 2018, 18:59 | #3 |
Registered User
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,252
|
The "Reset" command resets the hot system while the command "Reboot" instead makes a cold reboot eliminating everything from the Ram (great when there is a virus in memory).
The "Flush" command or other similar applications is very convenient for cleaning up the used libraries that allow you to replace the libraries (erasing them from the memory) without rebooting the system. |
08 September 2018, 14:42 | #4 |
Banned
Join Date: Nov 2007
Location: Trondheim, Norway
Posts: 1,893
|
You mean "avail flush".
OS3.1 Install floppy comes with a C/Reboot. |
08 September 2018, 14:45 | #5 |
Banned
Join Date: Nov 2007
Location: Trondheim, Norway
Posts: 1,893
|
Hm, no. There's lots of things, including viruses, that remain resident and survive just about any reboot command.
|
08 September 2018, 15:08 | #6 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,517
|
Nothing survives if reboot command clears execbase pointer (or any other method that causes KS to rebuild exec from scratch) before rebooting.
|
08 September 2018, 15:08 | #7 |
This cat is no more
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,201
|
Tude hardreset
|
08 September 2018, 22:06 | #8 |
Registered User
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,252
|
No, application called "Flush", convenient when you need to replace a library without rebooting the system
Last edited by AMIGASYSTEM; 13 September 2018 at 18:56. |
09 September 2018, 11:27 | #9 |
Banned
Join Date: Nov 2007
Location: Trondheim, Norway
Posts: 1,893
|
Well, that is not part of the OS and it appears to do the exact same as "avail flush", except that it prints out what it managed to flush. When referring to third party tools, it would be nice if you could link to which you speak of, there are several reboot/reset/flush commands on Aminet.
The "standard" Reboot command that comes with OS 3.1 does not fully resets systems, resident kickstart modules loaded with LoadModule, RAD disk devices, and programs written to survive (TimeKeeper, BootCtrl etc and yes - viruses), will survive. On that topic - would be nice with a "flusher" that prints out what it did _not_ manage to flush, and what program that "hold" the resource. @tlgrooms Sorry if this drifted off to more than you asked for |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
for..each statement in CLI | pieter1976 | support.Other | 10 | 09 January 2020 22:15 |
Amikit and CLI | BanisterDK | support.WinUAE | 2 | 16 September 2012 12:10 |
CLI help | DeafDaz | request.Other | 3 | 10 August 2011 01:16 |
System is not validated! FFS (and I dont mean fast file system!) | Macca | support.Hardware | 11 | 11 June 2007 13:04 |
|
|