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

17
LINES

< > BotCompany Repo | #1001368 // hyperMove (jump between two machines)

JavaX fragment (include)

static void hyperMove(S machine1, S machine2) ctex {
  S botID = formatSnippetID(getProgramID());

  S destMachine = getComputerID().equals(machine2) ? machine1 : machine2;
  print("Hyper-Move: Jumping to " + destMachine + "...");
  
  File zipPath = new File(getProgramDir(), botID + ".zip");
  boolean hasData = zipBot(botID, zipPath);
  
  S title = "Data zip of " + botID + " on " + computerID() + " at " + now();
  S gummipw = getProgramID() + "-hypermove";
  S dataID = hasData ? uploadDataSuperHigh(gummipw, title, zipPath) : "#1001471" /* no data */;
  
  sendToRemoteBot("Identity Manager", format3("* is now in state * with data * to machine *", botID, "moving", dataID, destMachine));
  
  print("\nDone. Data ID: " + dataID);
}

Author comment

Began life as a copy of #1001351

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1001368
Snippet name: hyperMove (jump between two machines)
Eternal ID of this version: #1001368/1
Text MD5: dbbb4350963c4c01b23ee391003b8720
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-10-17 14:40:35
Source code size: 755 bytes / 17 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 597 / 859
Referenced in: #1001466 - hyperMoveAnother (move another program between two machines)
#1002427 - Accellerating 629 (SPIKE)
#1006654 - Standard functions list 2 (LIVE, continuation of #761)
#3000202 - Answer for stefanreich (>> T conversion bot)
#3000238 - Answer for stefanreich (>> t power bot)
#3000382 - Answer for ferdie (>> t = 1, f = 0)
#3000383 - Answer for funkoverflow (>> t=1, f=0 okay)