Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,23 @@
|
|||
/* NetRexx */
|
||||
options replace format comments java crossref symbols binary
|
||||
|
||||
import java.util.Scanner
|
||||
|
||||
runSample(arg)
|
||||
return
|
||||
|
||||
-- 10:43, 27 August 2022 (UTC)10:43, 27 August 2022 (UTC)10:43, 27 August 2022 (UTC)10:43, 27 August 2022 (UTC)10:43, 27 August 2022 (UTC)10:43, 27 August 2022 (UTC)10:43, 27 August 2022 (UTC)10:43, 27 August 2022 (UTC)10:43, 27 August 2022 (UTC)10:43, 27 August 2022 (UTC)10:43, 27 August 2022 (UTC)10:43, 27 August 2022 (UTC)10:43, 27 August 2022 (UTC)10:43, 27 August 2022 (UTC)10:43, 27 August 2022 (UTC)~~
|
||||
method runSample(arg) private static
|
||||
parse arg command
|
||||
if command = '' then command = 'ls -oa' -- for Windows change to: 'cmd /C dir'
|
||||
do
|
||||
say 'Executing command:' command
|
||||
jprocess = Runtime.getRunTime().exec(command)
|
||||
jscanner = Scanner(jprocess.getInputStream())
|
||||
loop label scanning while jscanner.hasNext()
|
||||
say jscanner.nextLine()
|
||||
end scanning
|
||||
catch ex = IOException
|
||||
ex.printStackTrace()
|
||||
end
|
||||
return
|
||||
Loading…
Add table
Add a link
Reference in a new issue