#include "utility.h"#include <stdlib.h>#include <string.h>#include "comm_data.h"#include "comm_basics.h"#include "general.h"#include "server.h"#include "gs_tools.h"
Go to the source code of this file.
Functions | |
| int | main (int argc, char **argv) |
This program will ask the agent to terminate. The usage is: GS_killagent <agent name>="">
Definition in file gs_kill_agent.c.
| int main | ( | int | argc, | |
| char ** | argv | |||
| ) |
Entry point for GS_killagent.
| argc | -- arg count | |
| argv | -- array of command line args |
Definition at line 32 of file gs_kill_agent.c.
{
int agentport;
if(argc < 2) {
fprintf(stderr,"Usage: GS_killagent <agent name>\n");
exit(EXIT_FAILURE);
}
agentport = getenv_int("GRIDSOLVE_AGENT_PORT", GRIDSOLVE_AGENT_PORT_DEFAULT);
gs_kill_agent(argv[1], agentport);
exit(EXIT_SUCCESS);
}

1.6.3-20100507