Re: Executing Outside Programs

From: George Greer (greerga@circlemud.org)
Date: 03/04/00


On Sat, 4 Mar 2000, Pat O'Laughlin wrote:

>I'm having trouble figuring out how to execute outside programs.
>Right now I'm using the following line:
>
>execl("gdb", "gdb", "bin/circle", "-c", "lib/core", "-x",
>".gdb_command", "-batch", ">>", "lib/crash_info");
>
>but it doesn't seem to be working.
>
>Am I doing something wrong?

Try system(), it's better in trivial cases. (And remember the trivial
part.)

--
George Greer            | Mailing list archives
greerga@circlemud.org   | http://post.queensu.ca/~listserv/wwwarch/circle.html


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 04/10/01 PDT