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

20
LINES

< > BotCompany Repo | #1000854 // Run program and upload output as NT snippet (attempt 2)

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

Libraryless. Click here for Pure Java version (2187L/16K/50K).

!747

main {
  static String programID;
  
  psvm {
    String demoProgID = "#1000414"; // Hello world
    S a = join(" ", args);
    if (a.length() == 0)
      a = "" + parseSnippetID(demoProgID);
    
    print("Running " + a);
    backtick_verbose = true;
    String text = backtickJavax(a);
    if (text.isEmpty())
      print("No output!?");
    else
      ntUpload("Program runner (" + programID + ")", "Output of: " + (Character.isDigit(a.charAt(0)) ? "#" + a : a), text);
  }
}

Author comment

Began life as a copy of #1000573

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1000854
Snippet name: Run program and upload output as NT snippet (attempt 2)
Eternal ID of this version: #1000854/1
Text MD5: 9f58efaa1c5e2abb2224f5694eda6f57
Transpilation MD5: a33a10ae96dbee42bc7fee5aa2c0cad9
Author: stefan
Category:
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-08-30 17:30:19
Source code size: 504 bytes / 20 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 558 / 628
Referenced in: [show references]