Scheme 48 Manual | Contents | In Chapter: Libraries
Previous: Fluid bindings | Next: Sockets

Shell commands

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

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: Fluid bindings | Next: Sockets