Hi Nala Ginrut,
Thanks for your reply.
I suspect I expressed myself poorly. (execlp ls ) replaces guile
with ls, which lists my files and returns me to the shell.
What is some-function, where some-function works like this:
(some-function ls)
- /bin/ls (I'd settle for #t)
(some-function
On Wed, Nov 23, 2011 at 8:16 PM, Paul Emsley paul.ems...@bioch.ox.ac.ukwrote:
Hi Nala Ginrut,
Thanks for your reply.
I suspect I expressed myself poorly. (execlp ls ) replaces guile with
ls, which lists my files and returns me to the shell.
What is some-function, where some-function works
-[ Wed, Nov 23, 2011 at 08:28:56PM +0800, Nala Ginrut ]
I think there's no such a given function in Guile to do this.
But you can make it in a easy way in Guile:
(catch 'system-error
(lambda () (execlp asdfasdf))
(lambda (k . e)
(format #t oh no~%~)))
PS: Maybe you
On Wed, Nov 23, 2011 at 10:03 PM, ri...@happyleptic.org wrote:
-[ Wed, Nov 23, 2011 at 08:28:56PM +0800, Nala Ginrut ]
I think there's no such a given function in Guile to do this.
But you can make it in a easy way in Guile:
(catch 'system-error
(lambda () (execlp asdfasdf
() Paul Emsley paul.ems...@bioch.ox.ac.uk
() Wed, 23 Nov 2011 12:16:47 +
What is some-function, where some-function works like this:
(some-function ls)
- /bin/ls (I'd settle for #t)
(some-function asdfasdf)
- #f
You can try something like:
(use-modules (srfi srfi-13) (srfi
Hi,
I am trying to see if there is a way to determine if a program is in the
path (i.e. a bit like which), returning a #t or #f answer. I was
looking execl and execlp.
The documentation for execl says:
Executes the file named by path as a new process image
what is path ? I'm guessing
I think there's a bug.
(execlp ls ) will access.
Since the second parameter is optional, scm_execlp doesn't handle exec_argv
unbounded situation.
On Wed, Nov 23, 2011 at 12:06 AM, Paul Emsley paul.ems...@bioch.ox.ac.ukwrote:
Hi,
I am trying to see if there is a way to determine if a program
Well, I noticed your second question. ;-)
The common method to determine a executable file is stat:perms, you may
check it out in the manual for details.
On Wed, Nov 23, 2011 at 1:47 PM, Nala Ginrut nalagin...@gmail.com wrote:
I think there's a bug.
(execlp ls ) will access.
Since the second