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).

1  
!747
2  
3  
main {
4  
  static String programID;
5  
  
6  
  psvm {
7  
    String demoProgID = "#1000414"; // Hello world
8  
    S a = join(" ", args);
9  
    if (a.length() == 0)
10  
      a = "" + parseSnippetID(demoProgID);
11  
    
12  
    print("Running " + a);
13  
    backtick_verbose = true;
14  
    String text = backtickJavax(a);
15  
    if (text.isEmpty())
16  
      print("No output!?");
17  
    else
18  
      ntUpload("Program runner (" + programID + ")", "Output of: " + (Character.isDigit(a.charAt(0)) ? "#" + a : a), text);
19  
  }
20  
}

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: 610 / 701
Referenced in: [show references]