Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

lisp and unix system calls

58 views
Skip to first unread message

expo

unread,
Nov 29, 1999, 3:00:00 AM11/29/99
to
i am writing a program on allegro common lisp
running on a *nix based system. i want to make a
system call to 'grep' or similar command, perhaps
even a shell script and i was wondering on how to
do such a thing. i've looked at several manuals to
no avail. to maybe help you understand the
problem, this is what i want from this part of the
program: i want to be able to search through a
text file (or files) for a pattern, which may or
may not include wildcards (? and *). any help
would be greatly appreciated.
tyler


Sent via Deja.com http://www.deja.com/
Before you buy.

Erik Naggum

unread,
Nov 30, 1999, 3:00:00 AM11/30/99
to
* expo <tga...@my-deja.com>

| i want to make a system call to 'grep' or similar command, perhaps
| even a shell script and i was wondering on how to do such a thing.

hm. a "system call" is generally a call to a kernel service. the
"system" C function, however, just runs a shell command. Allegro CL
offers the function RUN-SHELL-COMMAND which does exactly this.

#:Erik

0 new messages