4 static void *execute_parse __P((char **));
5 static void execute_destroy __P((void *));
6 static int execute_send __P((void *, ipmon_msg_t *));
7 static void execute_print __P((void *));
9 typedef struct execute_opts_s {
13 ipmon_saver_t executesaver = {
25 execute_parse(char **strings)
29 ctx = calloc(1, sizeof(*ctx));
31 if (ctx != NULL && strings[0] != NULL && strings[0][0] != '\0') {
32 ctx->path = strdup(strings[0]);
47 execute_opts_t *exe = ctx;
49 printf("%s", exe->path);
57 execute_opts_t *exe = ctx;
66 execute_send(ctx, msg)
70 execute_opts_t *exe = ctx;
73 fp = popen(exe->path, "w");
75 fwrite(msg->imm_msg, msg->imm_msglen, 1, fp);