foreign-c-libraries/retropikzel/system
retropikzel 83d3957718 Fix system library test 2026-01-10 08:43:24 +02:00
..
LICENSE Improving testing 2025-11-28 09:14:13 +02:00
README.html Improving testing 2025-11-28 09:14:13 +02:00
README.md Improving testing 2025-11-28 09:14:13 +02:00
VERSION Bump system -library version number 2025-11-29 10:09:34 +02:00
test.scm Fix system library test 2026-01-10 08:43:24 +02:00

README.md

Execute a shell command.

Built upon (foreign c).

Repository

Issue tracker

Maling lists

Jenkins

(system command)

command is a string containing the command you want to run.

Returns the exit code of the command.

Example:

(import (scheme base)
        (scheme write)
        (scheme file)
        (retropikzel system))

(define testfile "test.txt")
(system (apply string-append `("echo \"Hello\" > " ,testfile)))

(define text (with-input-from-file testfile (lambda () (read-line))))
(display text)
(newline)