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

12
LINES

< > BotCompany Repo | #1001364 // Periodic rebooter (once every 24h)

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (850L/7K/24K).

!747

m {
  static long hours = 24;
  
  p {
    print("Periodic rebooter. Sleeping till reboot time."); // TODO: print that time
    sleepSeconds(60*60*hours);
    startBot("Reboot Bot", "#1001218");
    sendToLocalBot("Reboot Bot", "please reboot the machine.");
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, jtubtzbbkimh, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1001364
Snippet name: Periodic rebooter (once every 24h)
Eternal ID of this version: #1001364/1
Text MD5: f79d957de008032c0c6e1e233422365c
Transpilation MD5: 1e4697b1498033f46edb74853cc1fb09
Author: stefan
Category:
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-10-11 20:45:18
Source code size: 281 bytes / 12 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 585 / 957
Referenced in: [show references]