[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
re: system call and results ...
From: |
David Pirotte |
Subject: |
re: system call and results ... |
Date: |
Sat, 16 Sep 2000 17:05:43 +0200 |
> *--------------------------------------
> |
> | guile> (format #f "test\n")
> | "test
> | "
> | guile> (format #t "test\n")
> | test
> | guile>
> |
>
> Hope this helps
Well, not really: I don't thing you understood my question, let me take an
even simpler example:
guile> (define date (system "date '+%d-%m-%Y'"))
16-09-2000
guile> date
0
you see, I want that 'date' gets bound to the result of the system call,
not the shell exit code
i know this probably involves redefining output port and reading it, but i
was hoping a simple example just to be quicker
thanks
david
- re: system call and results ...,
David Pirotte <=