Scheme 48 Manual -- Shell commands

Scheme 48 Manual | Contents | In Chapter: Libraries
Previous: Shell commands | Next: Shell commands

## Shell commands

Structure `c-system-function` provides access to the C `system()` function.

- `(have-system?) -> boolean`
- `(system string) -> integer`

`Have-system?` returns true if the underlying C implementation has a command processor. `(System `string`)` passes `string` to the C `system()` function and returns the result.

>     (begin
>       (system "echo foo > test-file")
>       (call-with-input-file "test-file" read))
>     -> 'foo

Previous: Shell commands | Next: Shell commands