comparison loadtools/ltpassthru.c @ 0:e7502631a0f9

initial import from freecalypso-sw rev 1033:5ab737ac3ad7
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 11 Jun 2016 00:13:35 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:e7502631a0f9
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 }