[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xbindkeys-devel] reading the output of run-command

From: Marc Belmont
Subject: [Xbindkeys-devel] reading the output of run-command
Date: Mon, 8 Jun 2009 13:41:59 +0200


I wanted to read the output of run-command and I wrote this scheme code

(define (shell-run cmd)
(let* ((port (open-input-pipe cmd))
(str (read-line port)))
(close-port port)

and then something like

(xbindkey-function '(a) (lambda () (display (shell-run "xdotool getmouselocation"))))

it's working ok 5 times and then I get an error

glibc detected *** xbindkeys: free(): invalid next size (fast): 0x80512a0 ***...

What's wrong with my code?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]