foreign-c-libraries/retropikzel/system
retropikzel a417c9aec1 Bump version. Prepare for snow-indexing 2026-08-29 16:47:04 +03: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 version. Prepare for snow-indexing 2026-08-29 16:47:04 +03:00
test.scm Bump version. Prepare for snow-indexing 2026-08-29 16:47:04 +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)