zhaqenl
Re:Scripting in Common Lisp
on Thursday January 31, 2019 @04:24AM (#19043559)
Here's an example from my `pelo` project:
https://github.com/zhaqenl/pelo/blob/master/pelo.lisp#L112
(defun get-ping (host)
"Get ping reply from host."
(inferior-shell:run/ss
`(inferior-shell:pipe (ping -c 1 ,host) (grep "time=")
(sed -e "s/^.*time=//;s/
*ms$//"))))
The idea is from a similar project in a different Lisp dialect: