Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,19 @@
|
|||
[indent=4]
|
||||
/*
|
||||
Get system command output, in Genie
|
||||
|
||||
valac getSystemCommandOutput.gs
|
||||
./getSystemCommandOutput
|
||||
*/
|
||||
|
||||
init
|
||||
try
|
||||
// Blocking with output capture
|
||||
standard_output : string
|
||||
standard_error : string
|
||||
exit_status : int
|
||||
Process.spawn_command_line_sync("sh -c 'ls getSys*'",
|
||||
out standard_output, out standard_error, out exit_status)
|
||||
print standard_output
|
||||
except e : SpawnError
|
||||
stderr.printf("%s\n", e.message)
|
||||
Loading…
Add table
Add a link
Reference in a new issue