comparison loadtools/ltpassthru.c @ 23:aca1948e9713

loadtool: initial version compiles and links
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sat, 04 May 2013 04:52:05 +0000
parents
children
comparison
equal deleted inserted replaced
22:e658a84b37df 23:aca1948e9713
1 /*
2 * This module contains the loadtool_cmd_passthru() function,
3 * which implements the simplest commands that pass directly
4 * through to loadagent.
5 */
6
7 #include <stdio.h>
8
9 loadtool_cmd_passthru(argc, argv)
10 char **argv;
11 {
12 if (tpinterf_make_cmd(argv) < 0) {
13 fprintf(stderr, "error: unable to form target command\n");
14 return(-1);
15 }
16 if (tpinterf_send_cmd() < 0)
17 return(-1);
18 return tpinterf_pass_output(1);
19 }