This is the mail archive of the
guile@sources.redhat.com
mailing list for the Guile project.
re: system call and results ...
- To: "guile-user at gnu dot org" <guile-user at gnu dot org>
- Subject: re: system call and results ...
- From: David Pirotte <david at altosw dot be>
- Date: Sat, 16 Sep 2000 17:05:43 +0200
- List-Id: <guile-user.gnu.org>
- Organization: Alto Sotware (http://www.altosw.be)
> *--------------------------------------
> |
> | 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
_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user