add single files, secure server, hello world
This commit is contained in:
14
single_file_tests/run_process.dart
Normal file
14
single_file_tests/run_process.dart
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env dart
|
||||
|
||||
import 'dart:io';
|
||||
|
||||
main() async {
|
||||
// run
|
||||
var results = await Process.run('ls', ['-l']);
|
||||
print(results.stdout);
|
||||
|
||||
// start
|
||||
var process = await Process.start('ls', ['-l']);
|
||||
var exitCode = await process.exitCode;
|
||||
print('exit code: $exitCode');
|
||||
}
|
||||
Reference in New Issue
Block a user