FTP: Difference between revisions
Content added Content deleted
m (→{{header|FutureBasic}}: Inserted code indents) |
|||
Line 620: | Line 620: | ||
local fn RunTerminalCommand( cmd as CFStringRef ) as CFStringRef |
local fn RunTerminalCommand( cmd as CFStringRef ) as CFStringRef |
||
⚫ | |||
'~'1 |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
CFStringRef cmdStr = fn StringWithFormat( @"%@", cmd ) |
|||
⚫ | |||
CFArrayRef args = fn ArrayWithObjects( @"-c", cmdStr, NULL ) |
|||
⚫ | |||
CFArrayRef args = fn ArrayWithObjects( @"-c", cmdStr, NULL ) |
|||
⚫ | |||
⚫ | |||
TaskSetStandardOutput( task, p ) |
|||
⚫ | |||
TaskSetStandardError( task, p ) |
|||
⚫ | |||
TaskSetStandardError( task, p ) |
|||
⚫ | |||
fn TaskLaunch( task, NULL ) |
|||
TaskWaitUntilExit( task ) |
|||
TaskWaitUntilExit( task ) |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
end fn = outputStr |
end fn = outputStr |
||