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

14
LINES

< > BotCompany Repo | #1001211 // Process execution bot

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

Libraryless. Click here for Pure Java version (519L/4K/14K).

1  
// Execute a process, store its output (on System.out) as text
2  
3  
!747
4  
5  
m {
6  
  static S cmd = "ps";
7  
  static S output;
8  
  
9  
  p {
10  
    output = backtick(cmd);
11  
    print("System program " + quote(shorten(cmd, 50)) + " said: " + quote(shorten(output, 50)));
12  
    sleep();
13  
  }
14  
}

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: #1001211
Snippet name: Process execution bot
Eternal ID of this version: #1001211/1
Text MD5: 18d27687b864fdfb5eebd4fac2c447c7
Transpilation MD5: 7d6002989ece124787785220eba0b81a
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-10-02 14:48:19
Source code size: 281 bytes / 14 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 625 / 692
Referenced in: [show references]