foreign-c-libraries/retropikzel/gi-repository
retropikzel d6db0eb5b3 Started adding gi-repository library 2025-12-02 20:04:52 +02:00
..
LICENSE Started adding gi-repository library 2025-12-02 20:04:52 +02:00
README.html Started adding gi-repository library 2025-12-02 20:04:52 +02:00
README.md Started adding gi-repository library 2025-12-02 20:04:52 +02:00
VERSION Started adding gi-repository library 2025-12-02 20:04:52 +02:00
test.scm Started adding gi-repository library 2025-12-02 20:04:52 +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)