Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1020105 // rebootComputer

JavaX fragment (include)

1  
svoid rebootComputer() {
2  
  logQuotedWithDate(rebootLogFile(), "Rebooting computer");
3  
  if (isWindows())
4  
    windows_reboot();
5  
  else
6  
    linux_reboot();
7  
}

Author comment

Began life as a copy of #1020006

download  show line numbers  debug dex  old transpilations   

Travelled to 9 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1020105
Snippet name: rebootComputer
Eternal ID of this version: #1020105/3
Text MD5: a95e389ae5557b61e3c468d5bff73c7d
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-02-10 14:02:25
Source code size: 160 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 354 / 366
Version history: 2 change(s)
Referenced in: [show references]