[swift-users] Start another program from Swift script

Седых Александр se-a at mail.ru
Thu Jan 4 10:03:06 CST 2018


Well, for example in Python we can run another program from interpreter by
 
import subprocess
result = subprocess.run('ruby script.rb').stdout
 
My question is next:
Can we do something from Swift file at runtime or maybe from terminal via REPL
 
And can you send me resource when I can read about work with stdin, stdout in Swift, because is very small info in Documentation (Standard Library I/O)
-
Alexandr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20180104/11f12f22/attachment.html>


More information about the swift-users mailing list