[erlang-questions] restart one machine

Carl McDade carlmcdade@REDACTED
Fri May 22 07:47:09 CEST 2009


Caveat,

Although, using these commands may restart or shutdown the Operating
system there is no guarantee that it will reboot the hardware.
Rebooting the hardware is going to be system dependent (motherboard)
especially on Windows (I have tested this many times using Visual
basic). You may have to add in another program to Windows Server or an
older machine running Linux.

Windows Server:

shutdown -r -t 01

>
> On Fri, May 22, 2009 at 1:01 AM, Taavi Talvik <taavi@REDACTED> wrote:
>>
>> On May 22, 2009, at 2:30 AM, info wrote:
>>
>>> Hi all,
>>>
>>> In a distributed erlang system, is it possible to restart one
>>> machine by erlang ?
>>> If yes, could you advice me what I might read in order to learn ?
>>> Or explain us here ...
>>
>> os:cmd("/sbin/reboot").
>>
>> Or appropriate command for your operating system.
>>
>> Or man heart(3). Heart will monitor erlang system and
>> if it does not respond and HEART_COMMAND is set to operating
>> system reboot command - computer will be restarted.
>>
>> best regards,
>> taavi
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-questions@REDACTED
>> http://www.erlang.org/mailman/listinfo/erlang-questions
>>
>
>
>
> --
> Carl McDade
> Content Management Systems Consultant
> www.hiveminds.co.uk
> ________________________
>



-- 
Carl McDade
Content Management Systems Consultant
www.hiveminds.co.uk
________________________



More information about the erlang-questions mailing list