Skip to content

til-lang/til-exec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

til-exec

Run system programs using Til.

Commands

exec PARAMETERS

(That is: the module name itself.)

proc on.error (e) {
    if (<$e class> == "exec") {
        set process <$e object>
        print "Process returned " <$process return_code>

        extract $process error | foreach line {
            print "error: $line"
        }
    } else {
        return $e
    }
}

exec ls /etc | foreach line {
    print "output: $line"
}

About

Run system programs using Til

Resources

Stars

Watchers

Forks

Packages

No packages published