foreign-c-libraries/system
retropikzel ce090c2488 Fixing repo 2025-10-25 05:44:52 +03:00
..
retropikzel Fixing repo 2025-10-25 05:44:52 +03:00
AUTHOR Fixing repo 2025-10-25 05:44:52 +03:00
Jenkinsfile Fixing repo 2025-10-25 05:44:52 +03:00
LICENSE Fixing repo 2025-10-25 05:44:52 +03:00
Makefile Fixing repo 2025-10-25 05:44:52 +03:00
README.md Fixing repo 2025-10-25 05:44:52 +03:00
VERSION Fixing repo 2025-10-25 05:44:52 +03:00
test.scm Fixing repo 2025-10-25 05:44:52 +03: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)