RosettaCodeData/Task/Execute-a-system-command/FutureBasic/execute-a-system-command.futurebasic

15 lines
215 B
Text
Raw Permalink Normal View History

2016-12-05 23:44:36 +01:00
include "ConsoleWindow"
local fn DoUnixCommand( cmd as str255 )
dim as str255 s
open "Unix", 2, cmd
while ( not eof(2) )
line input #2, s
print s
wend
close 2
end fn
fn DoUnixCommand( "ls -A" )