1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 #include <ws.h>
24 #include <ws_error.h>
25 #include <ws_dcls.h>
26 #include <ws_msg.h>
27 #include <wsmincap.h>
28
29 #define MAX_CMD_LEN 128
30
31 extern char mysystem;
32
33 i_execom (p_param)
34
35 struct execom_struc *p_param;
36 {
37 static int CMD_ID_CNT;
38 struct execom_msg exemsg;
39
40
41
42 p_param -> cmd_id = ++CMD_ID_CNT;
43
44
45
46 exemsg.system = (char) p_param -> system;
47 exemsg.major = WSMAJCAP;
48 exemsg.minor = WS_EXECUTE_COMMAND;
49 exemsg.source_major = (char) p_param -> major;
50 exemsg.source_system = mysystem;
51 exemsg.cmd_id = p_param -> cmd_id;
52
53
54
55 p_param -> status = send_i_mess (&exemsg.system, sizeof(exemsg) - 1,
56 &p_param -> command,p_param -> com_len);
57
58 return (p_param -> status);
59 }
60 ^Z