foreign-c-libraries/foreign/c/system
retropikzel aaa0255ade Restructure 2025-10-29 16:10:51 +02:00
..
LICENSE Restructure 2025-10-29 16:10:51 +02:00
README.html Restructure 2025-10-29 16:10:51 +02:00
README.md Restructure 2025-10-29 16:10:51 +02:00
VERSION Restructure 2025-10-29 16:10:51 +02:00
test.scm Restructure 2025-10-29 16:10:51 +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)