Libraryless. Click here for Pure Java version (519L/4K/14K).
// Execute a process, store its output (on System.out) as text !747 m { static S cmd = "ps"; static S output; p { output = backtick(cmd); print("System program " + quote(shorten(cmd, 50)) + " said: " + quote(shorten(output, 50))); sleep(); } }
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: | 849 / 953 | 
| Referenced in: | [show references] |